From 8236f2a63cb135fbe0969120d425c4068aa5bd12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Knut=20Olav=20L=C3=B8ite?= Date: Wed, 7 Feb 2024 18:14:51 +0100 Subject: [PATCH] build: test Docker build without latest tag --- .github/workflows/docker-build-and-push.yaml | 30 ++++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/docker-build-and-push.yaml b/.github/workflows/docker-build-and-push.yaml index 75f871999..22973f9bb 100644 --- a/.github/workflows/docker-build-and-push.yaml +++ b/.github/workflows/docker-build-and-push.yaml @@ -40,24 +40,24 @@ jobs: export TAG=`echo $GITHUB_REF | awk -F/ '{print $NF}'` echo $TAG docker buildx create --name multi_platform --use - docker buildx build --platform linux/amd64,linux/arm64 \ - . -f build/Dockerfile \ - -t "$GCR_HOSTNAME"/"$IMAGE":"$TAG" \ - -t "$GCR_HOSTNAME"/"$IMAGE":latest \ - --push \ - --build-arg GITHUB_SHA="$GITHUB_SHA" \ - --build-arg GITHUB_REF="$GITHUB_REF" - docker buildx build --platform linux/amd64,linux/arm64 \ - . -f build/distroless/Dockerfile \ - -t "$GCR_HOSTNAME"/"$IMAGE"-distroless:"$TAG" \ - -t "$GCR_HOSTNAME"/"$IMAGE"-distroless:latest \ - --push \ - --build-arg GITHUB_SHA="$GITHUB_SHA" \ - --build-arg GITHUB_REF="$GITHUB_REF" +# docker buildx build --platform linux/amd64,linux/arm64 \ +# . -f build/Dockerfile \ +# -t "$GCR_HOSTNAME"/"$IMAGE":"$TAG" \ +# -t "$GCR_HOSTNAME"/"$IMAGE":latest \ +# --push \ +# --build-arg GITHUB_SHA="$GITHUB_SHA" \ +# --build-arg GITHUB_REF="$GITHUB_REF" +# docker buildx build --platform linux/amd64,linux/arm64 \ +# . -f build/distroless/Dockerfile \ +# -t "$GCR_HOSTNAME"/"$IMAGE"-distroless:"$TAG" \ +# -t "$GCR_HOSTNAME"/"$IMAGE"-distroless:latest \ +# --push \ +# --build-arg GITHUB_SHA="$GITHUB_SHA" \ +# --build-arg GITHUB_REF="$GITHUB_REF" docker buildx build --platform linux/amd64,linux/arm64 \ . -f build/emulator/Dockerfile \ -t "$GCR_HOSTNAME"/"$IMAGE"-emulator:"$TAG" \ - -t "$GCR_HOSTNAME"/"$IMAGE"-emulator:latest \ +# -t "$GCR_HOSTNAME"/"$IMAGE"-emulator:latest \ --push \ --build-arg GITHUB_SHA="$GITHUB_SHA" \ --build-arg GITHUB_REF="$GITHUB_REF"