Browse Source

Tag images with the latest tag only when running against the latest stable branch (#25803)

lets-bump-hometown-to-mastodon-4.2
Renaud Chaput 3 years ago committed by GitHub
parent
commit
d481e72e85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      .github/workflows/build-image.yml

4
.github/workflows/build-image.yml

@ -49,8 +49,10 @@ jobs:
images: | images: |
tootsuite/mastodon tootsuite/mastodon
ghcr.io/mastodon/mastodon ghcr.io/mastodon/mastodon
# Only tag with latest when ran against the latest stable branch
# This needs to be updated after each minor version release
flavor: | flavor: |
latest=auto latest=${{ startsWith(github.ref, 'refs/tags/v4.1.') && 'auto' || 'false' }}
tags: | tags: |
type=edge,branch=main type=edge,branch=main
type=pep440,pattern={{raw}} type=pep440,pattern={{raw}}

Loading…
Cancel
Save