1
Fork 0

Add "latest" tag when building release

This commit is contained in:
Viktor Strate Kløvedal 2021-04-03 23:30:08 +02:00 committed by GitHub
parent a2c13d6fa1
commit 8a1f2e957e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -97,6 +97,9 @@ jobs:
name: Combine Docker Images
runs-on: ubuntu-20.04
if: github.event_name != 'pull_request' && github.repository == 'photoview/photoview'
defaults:
run:
shell: bash
needs: [build]
@ -122,7 +125,7 @@ jobs:
if [[ $VERSION =~ ^(([0-9]{1,3})\.[0-9]{1,3})\.[0-9]{1,3}$ ]]; then
VERSION_MINOR=${BASH_REMATCH[1]}
VERSION_MAJOR=${BASH_REMATCH[2]}
TAGS+=("${VERSION_MAJOR}" "${VERSION_MINOR}")
TAGS+=("${VERSION_MAJOR}" "${VERSION_MINOR}" "latest")
fi
for TAG in ${TAGS[*]}; do