Skip to content

Commit

Permalink
Fixed bug in github workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardogsilva committed Feb 15, 2024
1 parent 9643b32 commit 9c2fa93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

env:
PUBLISH_IMAGE: ${{ if (github.ref == 'main' || github.ref_type == 'branch') && 'TRUE' || 'FALSE'}}
IMAGE_TAG: ${{ if github.ref == 'main' && 'latest' || github.ref }}
IMAGE_TAG: ${{ github.ref == 'main' && 'latest' || github.ref }}
IMAGE_NAME: ghcr.io/${{ github.repository }}/arpav-ppcv-backend:${{ IMAGE_TAG }}

jobs:
Expand Down Expand Up @@ -48,7 +48,7 @@ jobs:
args: >-
python tests/ci/main.py
--with-tests
${{ if (env.PUBLISH_IMAGE == 'TRUE' && format('--image-registry {0}', env.IMAGE_NAME) || ''}}
${{ env.PUBLISH_IMAGE == 'TRUE' && format('--image-registry {0}', env.IMAGE_NAME) || ''}}
version: 0.9.9

# Periodically scan built image for vulnerabilities
Expand Down

0 comments on commit 9c2fa93

Please sign in to comment.