From 08e5c400ddcedc48b2c6c49b636e4f6429ff1ab7 Mon Sep 17 00:00:00 2001 From: Pranav Gaikwad Date: Wed, 20 Mar 2024 15:37:57 -0400 Subject: [PATCH] :ghost: use manual trigger Signed-off-by: Pranav Gaikwad --- .github/workflows/release-artifacts.yaml | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release-artifacts.yaml b/.github/workflows/release-artifacts.yaml index ae364df..f3f71a0 100644 --- a/.github/workflows/release-artifacts.yaml +++ b/.github/workflows/release-artifacts.yaml @@ -1,7 +1,17 @@ # this workflow makes sure we upload kantra binaries to release assets name: "Upload binaries to release assets" -on: ["release"] +on: + workflow_dispatch: + inputs: + use_latest_release: + type: boolean + default: true + description: Upload binaries to the most recent release + tag_pattern: + type: string + default: 'v*' + description: Pick from tags matching this pattern jobs: resolve-and-upload: @@ -14,18 +24,11 @@ jobs: - id: release_info uses: joutvhu/get-release@v1 with: - latest: true + latest: ${{ github.event.inputs.use_latest_release }} + tag_pattern: ${{ github.event.inputs.tag_pattern }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: wait for image to be published - run: | - #!/bin/bash - while ! docker pull quay.io/konveyor/kantra:${{ steps.release_info.outputs.tag_name }} &> /dev/null; do - sleep 3m - done - docker image inspect quay.io/konveyor/kantra:${{ steps.release_info.outputs.tag_name }} - - name: Extract binaries run: | image=quay.io/konveyor/kantra:${{ steps.release_info.outputs.tag_name }}