Skip to content

Commit b0500db

Browse files
authored
build: tag pgadapter-emulator images with non-production (#3832)
Automatically add a unique non-production tag to pgadapter-emulator Docker images.
1 parent d105d52 commit b0500db

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/docker-build-and-push-emulator.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,13 @@ jobs:
3535
run: |
3636
export TAG=`echo $GITHUB_REF | awk -F/ '{print $NF}'`
3737
echo $TAG
38+
export NON_PROD_TAG = `echo non-production-$GITHUB_REF | awk -F/ '{print $NF}'`
39+
echo $NON_PROD_TAG
3840
docker buildx create --name multi_platform --use
3941
docker buildx build --platform linux/amd64,linux/arm64 \
4042
. -f build/emulator/Dockerfile \
4143
-t "$GCR_HOSTNAME"/"$IMAGE"-emulator:"$TAG" \
44+
-t "$GCR_HOSTNAME"/"$IMAGE"-emulator:"$NON_PROD_TAG" \
4245
-t "$GCR_HOSTNAME"/"$IMAGE"-emulator:latest \
4346
--push \
4447
--build-arg GITHUB_SHA="$GITHUB_SHA" \

0 commit comments

Comments
 (0)