From 6e59f5a12f1e2251f14d56b5857391bd53f7e5ce 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 Co-authored-by: Andrea Lamparelli 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 216943aa..f0303083 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 + VERSION=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