mirror of
https://github.com/Hopiu/lychee.git
synced 2026-03-17 05:00:26 +00:00
Update Docker Workflow To Support Version Tags (#1631)
This commit is contained in:
parent
4f02b18e9b
commit
648f8486a7
1 changed files with 15 additions and 7 deletions
22
.github/workflows/docker.yml
vendored
22
.github/workflows/docker.yml
vendored
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue