mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-20 17:49:10 +00:00
Merge pull request #3665 from deitch/alpine-fix-targetauth
correctly use target-arch
This commit is contained in:
commit
8dd089ae93
@ -106,6 +106,6 @@ COPY --from=mirror /iucode_tool /usr/bin/
|
|||||||
|
|
||||||
RUN apk update && apk upgrade -a
|
RUN apk update && apk upgrade -a
|
||||||
|
|
||||||
RUN echo Dockerfile /lib/apk/db/installed $(find /mirror -name '*.apk' -type f) $(find /go/bin -type f) | xargs cat | sha1sum | sed 's/ .*//' | sed 's/$/-${TARGETARCH}/' > /etc/alpine-hash
|
RUN echo Dockerfile /lib/apk/db/installed $(find /mirror -name '*.apk' -type f) $(find /go/bin -type f) | xargs cat | sha1sum | sed 's/ .*//' | sed 's/$/-'"${TARGETARCH}"'/' > /etc/alpine-hash-arch
|
||||||
|
|
||||||
ENV GOPATH=/go PATH=$PATH:/go/bin
|
ENV GOPATH=/go PATH=$PATH:/go/bin
|
||||||
|
@ -24,7 +24,7 @@ iid: Dockerfile Makefile $(DEPS)
|
|||||||
docker build --no-cache --iidfile iid .
|
docker build --no-cache --iidfile iid .
|
||||||
|
|
||||||
hash: Makefile iid
|
hash: Makefile iid
|
||||||
docker run --rm $(shell cat iid) cat /etc/alpine-hash > $@
|
docker run --rm $(shell cat iid) cat /etc/alpine-hash-arch > $@
|
||||||
|
|
||||||
versions.$(ARCH): Makefile hash iid
|
versions.$(ARCH): Makefile hash iid
|
||||||
echo "# $(ORG)/$(IMAGE):$(shell cat hash)" > versions.$(ARCH)
|
echo "# $(ORG)/$(IMAGE):$(shell cat hash)" > versions.$(ARCH)
|
||||||
|
Loading…
Reference in New Issue
Block a user