diff options
author | Yamagishi Kazutoshi <ykzts@desire.sh> | 2022-10-10 07:32:40 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-10 00:32:40 +0200 |
commit | 32c3bd3c53d14e3b43dd17e639475046bcb41183 (patch) | |
tree | 19d2fe4cbae6e687c89334a3c568647a3b132a43 | |
parent | d3f1a010e561e3de9a1d99ec104f5b286aaffbda (diff) |
Use pep440 for Docker image tag rules (#19332)
-rw-r--r-- | .github/workflows/build-image.yml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/.github/workflows/build-image.yml b/.github/workflows/build-image.yml index 624aabbe7..39fe1bd0b 100644 --- a/.github/workflows/build-image.yml +++ b/.github/workflows/build-image.yml @@ -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 |