Skip to content

Commit 23e689b

Browse files
committed
include latest tag
1 parent 5076a1f commit 23e689b

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/deploy_to_ghcr_custom_tag.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
description: 'existing git tag to be used as tag for the Docker image e.g. "custom-tag"'
99
required: true
1010
default: 'my-tag'
11+
include_latest:
12+
description: 'should latest tag be included in the image tag'
13+
required: true
14+
default: 'true'
1115

1216
permissions:
1317
packages: write
@@ -40,6 +44,7 @@ jobs:
4044
org.opencontainers.image.source=${{ github.repository }}
4145
tags: |
4246
type=raw,enable=true,priority=1,value=${{ github.event.inputs.tag }}
47+
type=raw,enable=${{ github.event.inputs.include_latest }},priority=2,value=latest
4348
type=sha
4449
type=ref,event=branch
4550
type=ref,event=pr
@@ -82,6 +87,7 @@ jobs:
8287
org.opencontainers.image.source=${{ github.repository }}
8388
tags: |
8489
type=raw,enable=true,priority=1,value=${{ github.event.inputs.tag }}
90+
type=raw,enable=${{ github.event.inputs.include_latest }},priority=2,value=latest
8591
type=sha
8692
type=ref,event=branch
8793
type=ref,event=pr

.github/workflows/deploy_to_ghcr_tag_release.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ jobs:
8686
org.opencontainers.image.description=Metrics viewer for GitHub Copilot usage
8787
org.opencontainers.image.source=${{ github.repository }}
8888
tags: |
89+
type=raw,value=latest,enable=true
8990
type=sha
9091
type=ref,event=branch
9192
type=ref,event=pr
@@ -126,6 +127,7 @@ jobs:
126127
org.opencontainers.image.description=Metrics viewer for GitHub Copilot usage
127128
org.opencontainers.image.source=${{ github.repository }}
128129
tags: |
130+
type=raw,value=latest,enable=true
129131
type=sha
130132
type=ref,event=branch
131133
type=ref,event=pr

0 commit comments

Comments
 (0)