Skip to content

Commit 79ebd03

Browse files
committed
chore(minajs): promote image input
1 parent 73d023e commit 79ebd03

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/klesia_promote.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
name: Promote Docker image to latest
22
on:
33
workflow_dispatch:
4+
inputs:
5+
commitShort:
6+
description: "Short commit hash"
7+
required: true
8+
default: $(git rev-parse --short HEAD)
49
jobs:
510
promote_image:
611
name: Tag latest and push to GHCR
@@ -16,4 +21,4 @@ jobs:
1621
username: ${{ github.actor }}
1722
password: ${{ secrets.GITHUB_TOKEN }}
1823
- 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

Comments
 (0)