We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73d023e commit 79ebd03Copy full SHA for 79ebd03
.github/workflows/klesia_promote.yml
@@ -1,6 +1,11 @@
1
name: Promote Docker image to latest
2
on:
3
workflow_dispatch:
4
+ inputs:
5
+ commitShort:
6
+ description: "Short commit hash"
7
+ required: true
8
+ default: $(git rev-parse --short HEAD)
9
jobs:
10
promote_image:
11
name: Tag latest and push to GHCR
@@ -16,4 +21,4 @@ jobs:
16
21
username: ${{ github.actor }}
17
22
password: ${{ secrets.GITHUB_TOKEN }}
18
23
- name: Tag image
19
- run: docker buildx imagetools create ghcr.io/palladians/klesia:$(git rev-parse --short HEAD) --tag ghcr.io/palladians/klesia:latest
24
+ run: docker buildx imagetools create ghcr.io/palladians/klesia:${{ github.event.inputs.commitShort }} --tag ghcr.io/palladians/klesia:latest
0 commit comments