Skip to content

Commit

Permalink
build: test Docker build without latest tag
Browse files Browse the repository at this point in the history
  • Loading branch information
olavloite committed Feb 7, 2024
1 parent b9da6ec commit 8236f2a
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/docker-build-and-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 8236f2a

Please sign in to comment.