Update Docker Workflow To Support Version Tags (#1631)

This commit is contained in:
Matthias Endler 2025-02-24 22:22:10 +01:00 committed by GitHub
parent 4f02b18e9b
commit 648f8486a7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,9 +3,11 @@ on:
workflow_dispatch:
workflow_run:
workflows:
- release
- "Release Binary"
types:
- completed
branches:
- master
push:
branches:
- master
@ -41,9 +43,9 @@ jobs:
type=schedule
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=semver,pattern={{version}},value=${{ github.ref_name }},prefix=lychee-
type=semver,pattern={{major}}.{{minor}},value=${{ github.ref_name }},prefix=lychee-
type=semver,pattern={{major}},value=${{ github.ref_name }},prefix=lychee-
type=sha
# set latest tag for default branch
type=raw,value=latest,enable={{is_default_branch}}
@ -63,13 +65,19 @@ jobs:
type=schedule
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=semver,pattern={{version}},value=${{ github.ref_name }},prefix=lychee-
type=semver,pattern={{major}}.{{minor}},value=${{ github.ref_name }},prefix=lychee-
type=semver,pattern={{major}},value=${{ github.ref_name }},prefix=lychee-
type=sha
# set latest tag for default branch
type=raw,value=latest,enable={{is_default_branch}}
# Debug step to see generated tags
- name: Show tags
run: |
echo "Tags for debian: ${{ steps.meta.outputs.tags }}"
echo "Tags for alpine: ${{ steps.meta-alpine.outputs.tags }}"
- name: Set up QEMU
uses: docker/setup-qemu-action@v3