Browse Source

Use pep440 for Docker image tag rules (#19332)

closed-social-glitch-2
Yamagishi Kazutoshi 1 year ago
committed by GitHub
parent
commit
32c3bd3c53
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      .github/workflows/build-image.yml

+ 3
- 2
.github/workflows/build-image.yml View File

@ -33,7 +33,8 @@ jobs:
latest=auto
tags: |
type=edge,branch=main
type=match,pattern=v(.*),group=0
type=pep440,pattern={{raw}}
type=pep440,pattern=v{{major}}.{{minor}}
type=ref,event=pr
- uses: docker/build-push-action@v3
with:
@ -41,5 +42,5 @@ jobs:
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
cache-from: type=registry,ref=tootsuite/mastodon:latest
cache-from: type=registry,ref=tootsuite/mastodon:edge
cache-to: type=inline

Loading…
Cancel
Save