Skip to content

Commit

Permalink
👻 use manual trigger
Browse files Browse the repository at this point in the history
Signed-off-by: Pranav Gaikwad <[email protected]>
  • Loading branch information
pranavgaikwad committed Mar 20, 2024
1 parent 28b3a69 commit 08e5c40
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions .github/workflows/release-artifacts.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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 }}
Expand Down

0 comments on commit 08e5c40

Please sign in to comment.