mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 08:49:13 +00:00
build(docker): do not tag pre-release as latest (#1352)
This commit is contained in:
parent
a86258aaa7
commit
ab6f688fa6
1 changed files with 16 additions and 4 deletions
20
.github/workflows/release.yml
vendored
20
.github/workflows/release.yml
vendored
|
@ -190,9 +190,12 @@ jobs:
|
||||||
with:
|
with:
|
||||||
images: ${{ env.REGISTRY_IMAGE }}
|
images: ${{ env.REGISTRY_IMAGE }}
|
||||||
tags: |
|
tags: |
|
||||||
type=semver,pattern={{raw}}
|
type=semver,pattern={{version}},prefix=v
|
||||||
|
type=semver,pattern={{major}}.{{minor}},prefix=v
|
||||||
type=ref,event=branch
|
type=ref,event=branch
|
||||||
type=ref,event=pr
|
type=ref,event=pr
|
||||||
|
flavor: |
|
||||||
|
latest=auto
|
||||||
|
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v3
|
uses: docker/setup-qemu-action@v3
|
||||||
|
@ -218,7 +221,9 @@ jobs:
|
||||||
REVISION=${{ github.event.pull_request.head.sha }}
|
REVISION=${{ github.event.pull_request.head.sha }}
|
||||||
cache-from: type=gha
|
cache-from: type=gha
|
||||||
cache-to: type=gha,mode=max
|
cache-to: type=gha,mode=max
|
||||||
- name: Export digest
|
provenance: false
|
||||||
|
|
||||||
|
- name: Export image digest
|
||||||
id: digest-prep
|
id: digest-prep
|
||||||
run: |
|
run: |
|
||||||
mkdir -p /tmp/digests
|
mkdir -p /tmp/digests
|
||||||
|
@ -226,7 +231,7 @@ jobs:
|
||||||
echo "manifest-hash=${digest#sha256:}" >> "$GITHUB_OUTPUT"
|
echo "manifest-hash=${digest#sha256:}" >> "$GITHUB_OUTPUT"
|
||||||
touch "/tmp/digests/${digest#sha256:}"
|
touch "/tmp/digests/${digest#sha256:}"
|
||||||
|
|
||||||
- name: Upload digest
|
- name: Upload image digest
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: docker-digests-${{ steps.digest-prep.outputs.manifest-hash }}
|
name: docker-digests-${{ steps.digest-prep.outputs.manifest-hash }}
|
||||||
|
@ -240,7 +245,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [docker, test]
|
needs: [docker, test]
|
||||||
steps:
|
steps:
|
||||||
- name: Download digests
|
- name: Download image digests
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
path: /tmp/digests
|
path: /tmp/digests
|
||||||
|
@ -262,6 +267,13 @@ jobs:
|
||||||
uses: docker/metadata-action@v5
|
uses: docker/metadata-action@v5
|
||||||
with:
|
with:
|
||||||
images: ${{ env.REGISTRY_IMAGE }}
|
images: ${{ env.REGISTRY_IMAGE }}
|
||||||
|
tags: |
|
||||||
|
type=semver,pattern={{version}},prefix=v
|
||||||
|
type=semver,pattern={{major}}.{{minor}},prefix=v
|
||||||
|
type=ref,event=branch
|
||||||
|
type=ref,event=pr
|
||||||
|
flavor: |
|
||||||
|
latest=auto
|
||||||
|
|
||||||
- name: Create manifest list and push
|
- name: Create manifest list and push
|
||||||
working-directory: /tmp/digests
|
working-directory: /tmp/digests
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue