From a83b7dd7125a507021d25f701557ada5376a84d1 Mon Sep 17 00:00:00 2001 From: Piotr Antczak Date: Sun, 7 Jan 2024 14:56:42 +0100 Subject: [PATCH] fix: change if condition --- .github/workflows/build-docker-image.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-docker-image.yaml b/.github/workflows/build-docker-image.yaml index 0ecbe506..359664a7 100644 --- a/.github/workflows/build-docker-image.yaml +++ b/.github/workflows/build-docker-image.yaml @@ -38,11 +38,11 @@ jobs: password: ${{ secrets.DOCKER_ACCESS_TOKEN }} - name: Extract version from package.json - if: ${{ github.event.inputs.branch }} != 'development' + if: ${{ github.event.inputs.branch == 'master' }} run: echo "DOCKER_TAG=$(jq -r '.version' package.json)" >> $GITHUB_ENV - name: Build and push production Docker image - if: ${{ github.event.inputs.branch }} != 'development' + if: ${{ github.event.inputs.branch == 'master' }} run: | docker buildx build \ --platform linux/amd64,linux/arm64,linux/arm/v7 \ @@ -51,7 +51,7 @@ jobs: -f Dockerfile . - name: Build and push development Docker image - if: ${{ github.event.inputs.branch }} != 'development' + if: ${{ github.event.inputs.branch == 'development' }} run: | docker buildx build \ --platform linux/amd64,linux/arm64,linux/arm/v7 \