From 1b73fb249f0fb01538b78794ed34604a46e0050f Mon Sep 17 00:00:00 2001 From: Matteo Mortari Date: Wed, 6 Mar 2024 11:36:09 +0100 Subject: [PATCH] fix GHA invocation of docker tag push script Signed-off-by: Matteo Mortari --- .github/workflows/build-and-push-image.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-and-push-image.yml b/.github/workflows/build-and-push-image.yml index 216943aa1..e09fe8792 100644 --- a/.github/workflows/build-and-push-image.yml +++ b/.github/workflows/build-and-push-image.yml @@ -54,8 +54,8 @@ jobs: BUILD_IMAGE: false run: | docker tag ${{ env.IMG }}:$VERSION ${{ env.IMG }}:latest - # BUILD_IMAGE=false skip the build - ./scripts/build_deploy.sh + # BUILD_IMAGE=false skip the build, just push the tag made above + VERISON=latest ./scripts/build_deploy.sh - name: Tag Main if: env.BUILD_CONTEXT == 'main' shell: bash @@ -64,5 +64,5 @@ jobs: BUILD_IMAGE: false run: | docker tag ${{ env.IMG }}:$VERSION ${{ env.IMG }}:main - # BUILD_IMAGE=false skip the build - ./scripts/build_deploy.sh + # BUILD_IMAGE=false skip the build, just push the tag made above + VERSION=main ./scripts/build_deploy.sh