From b17702b137f997f785bd4fdf74e088124a29f601 Mon Sep 17 00:00:00 2001 From: artur rocks Date: Mon, 21 Oct 2024 21:03:29 +0200 Subject: [PATCH] fix ci --- .github/workflows/docker-image.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 5cafa43..7366d98 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -53,9 +53,9 @@ jobs: if [ "${{ github.ref }}" == "refs/heads/main" ]; then docker buildx build --push --tag $IMAGE_NAME:latest $CONTEXT elif [[ "${{ github.ref }}" == refs/tags/* ]]; then - docker buildx build --push --tag $IMAGE_NAME:${{ steps.vars.outputs.GIT_TAG }} $CONTEXT + docker buildx build --push --tag $IMAGE_NAME:$GIT_TAG $CONTEXT else - docker buildx build --push --tag $IMAGE_NAME:${{ steps.vars.outputs.BRANCH_NAME }}-${{ steps.vars.outputs.GIT_SHA_SHORT }} $CONTEXT + docker buildx build --push --tag $IMAGE_NAME:$BRANCH_NAME-$GIT_SHA_SHORT $CONTEXT fi - name: Cache node modules @@ -83,9 +83,9 @@ jobs: if [ "${{ github.ref }}" == "refs/heads/main" ]; then docker buildx build --push --tag $IMAGE_NAME:latest $CONTEXT elif [[ "${{ github.ref }}" == refs/tags/* ]]; then - docker buildx build --push --tag $IMAGE_NAME:${{ steps.vars.outputs.GIT_TAG }} $CONTEXT + docker buildx build --push --tag $IMAGE_NAME:$GIT_TAG $CONTEXT else - docker buildx build --push --tag $IMAGE_NAME:${{ steps.vars.outputs.BRANCH_NAME }}-${{ steps.vars.outputs.GIT_SHA_SHORT }} $CONTEXT + docker buildx build --push --tag $IMAGE_NAME:$BRANCH_NAME-$GIT_SHA_SHORT $CONTEXT fi - name: Build and push FITS WEB @@ -95,9 +95,9 @@ jobs: if [ "${{ github.ref }}" == "refs/heads/main" ]; then docker buildx build --push --tag $IMAGE_NAME:latest $CONTEXT elif [[ "${{ github.ref }}" == refs/tags/* ]]; then - docker buildx build --push --tag $IMAGE_NAME:${{ steps.vars.outputs.GIT_TAG }} $CONTEXT + docker buildx build --push --tag $IMAGE_NAME:$GIT_TAG $CONTEXT else - docker buildx build --push --tag $IMAGE_NAME:${{ steps.vars.outputs.BRANCH_NAME }}-${{ steps.vars.outputs.GIT_SHA_SHORT }} $CONTEXT + docker buildx build --push --tag $IMAGE_NAME:$BRANCH_NAME-$GIT_SHA_SHORT $CONTEXT fi