Skip to content

Commit

Permalink
Include artifact registry in gcp image
Browse files Browse the repository at this point in the history
  • Loading branch information
cezarsa committed Aug 9, 2021
1 parent 35d8f5a commit 8919851
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile.gcp
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ COPY --from=docker /usr/local/bin/docker /usr/local/bin/docker

RUN apk update --no-cache && \
apk add --no-cache curl tar && \
curl -fsSL "https://github.com/GoogleCloudPlatform/docker-credential-gcr/releases/download/v2.0.0/docker-credential-gcr_linux_amd64-2.0.0.tar.gz" \
curl -fsSL "https://github.com/GoogleCloudPlatform/docker-credential-gcr/releases/download/v2.0.5/docker-credential-gcr_linux_amd64-2.0.5.tar.gz" \
| tar xz --to-stdout ./docker-credential-gcr > /usr/local/bin/docker-credential-gcr && \
chmod +x /usr/local/bin/docker-credential-gcr && \
docker-credential-gcr configure-docker && \
docker-credential-gcr configure-docker --include-artifact-registry && \
mkdir ${HOME}/original-docker-config && \
cp ${HOME}/.docker/config.json ${HOME}/original-docker-config/config.json

0 comments on commit 8919851

Please sign in to comment.