From 3e93a2c33343a5a0e953d2839279e2355ccdec66 Mon Sep 17 00:00:00 2001 From: Matteo Mortari Date: Thu, 7 Mar 2024 20:31:15 +0100 Subject: [PATCH] fix GHA invocation of docker tag push script (#30) Signed-off-by: Matteo Mortari Co-authored-by: Andrea Lamparelli --- .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