Skip to content

Commit

Permalink
chore(minajs): promote image input
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcnk committed Oct 9, 2024
1 parent 73d023e commit 79ebd03
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/klesia_promote.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: Promote Docker image to latest
on:
workflow_dispatch:
inputs:
commitShort:
description: "Short commit hash"
required: true
default: $(git rev-parse --short HEAD)
jobs:
promote_image:
name: Tag latest and push to GHCR
Expand All @@ -16,4 +21,4 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Tag image
run: docker buildx imagetools create ghcr.io/palladians/klesia:$(git rev-parse --short HEAD) --tag ghcr.io/palladians/klesia:latest
run: docker buildx imagetools create ghcr.io/palladians/klesia:${{ github.event.inputs.commitShort }} --tag ghcr.io/palladians/klesia:latest

0 comments on commit 79ebd03

Please sign in to comment.