Skip to content

Commit

Permalink
Merge pull request wmbusmeters#1187 from testuser7/docker-tag
Browse files Browse the repository at this point in the history
Improve workflow syntax
  • Loading branch information
weetmuts authored Feb 23, 2024
2 parents 569efa3 + 67230b4 commit c21efd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ on:
env:
DOCKERHUB_IMAGE: ${{ github.repository }}
IMAGE_TAG: |
${{ github.ref_type == 'tag' && (contains(github.ref_name, '-RC') &&
format('{0}-{1}', 'candidate', github.ref_name) || format('{0}-{1}', 'release', github.ref_name)) || 'latest' }}
${{ github.ref_type == 'tag' && format('{0}-{1}', (contains(github.ref_name, '-RC') &&
'candidate' || 'release'), github.ref_name) || 'latest' }}
jobs:
build:
Expand Down

0 comments on commit c21efd1

Please sign in to comment.