From 79ebd03b0f66c1c15111fe689611607657484f11 Mon Sep 17 00:00:00 2001 From: Tomek Marciniak Date: Wed, 9 Oct 2024 15:05:29 +0200 Subject: [PATCH] chore(minajs): promote image input --- .github/workflows/klesia_promote.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/klesia_promote.yml b/.github/workflows/klesia_promote.yml index c4d2076..b3ff259 100644 --- a/.github/workflows/klesia_promote.yml +++ b/.github/workflows/klesia_promote.yml @@ -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 @@ -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