Skip to content

Commit

Permalink
fix: change if condition
Browse files Browse the repository at this point in the history
  • Loading branch information
benzino77 committed Jan 7, 2024
1 parent 9f03f5c commit a83b7dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-docker-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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 \
Expand Down

0 comments on commit a83b7dd

Please sign in to comment.