Skip to content

Commit

Permalink
Update Docker Workflow To Support Version Tags (#1631)
Browse files Browse the repository at this point in the history
  • Loading branch information
mre authored Feb 24, 2025
1 parent 4f02b18 commit 648f848
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ on:
workflow_dispatch:
workflow_run:
workflows:
- release
- "Release Binary"
types:
- completed
branches:
- master
push:
branches:
- master
Expand Down Expand Up @@ -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}}
Expand All @@ -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

Expand Down

0 comments on commit 648f848

Please sign in to comment.