~cytrogen/masto-fe

d481e72e85d5243b40c2a22c272c7e9f6404a568 — Renaud Chaput 2 years ago b6d173b
Tag images with the latest tag only when running against the latest stable branch (#25803)

1 files changed, 3 insertions(+), 1 deletions(-)

M .github/workflows/build-image.yml
M .github/workflows/build-image.yml => .github/workflows/build-image.yml +3 -1
@@ 49,8 49,10 @@ jobs:
          images: |
            tootsuite/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: |
            latest=auto
            latest=${{ startsWith(github.ref, 'refs/tags/v4.1.') && 'auto' || 'false' }}
          tags: |
            type=edge,branch=main
            type=pep440,pattern={{raw}}