Skip to content

Commit

Permalink
ci: Enable workflow dispatch for build and publish (PROJQUAY-3310) (#…
Browse files Browse the repository at this point in the history
…1155)

- Enable workflow dispatch for the build and publish job
- This is a requirement to call the workflow from releases repository
  • Loading branch information
jonathankingfc committed Mar 1, 2022
1 parent 005b903 commit e2921d7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/build-and-publish.yaml
Expand Up @@ -5,7 +5,12 @@ on:
push:
branches:
- redhat-** # IMPORTANT! this must match the jobs.build-and-publish.env.BRANCH_PREFIX (save the **).

workflow_dispatch:
# Allows you to run this workflow manually from the Actions tab
inputs:
tag:
description: 'Tag to attach to image'
required: true
jobs:
build-and-publish:
name: Publish container image
Expand Down Expand Up @@ -40,5 +45,5 @@ jobs:
TAG: ${{ steps.version-from-branch.outputs.version }}${{ env.TAG_SUFFIX }}
with:
push: true
tags: ${{ env.REGISTRY }}/${{ env.REPO_NAME }}:${{ env.TAG }}
tags: ${{ env.REGISTRY }}/${{ env.REPO_NAME }}:${{ github.event.inputs.tag || env.TAG }}

0 comments on commit e2921d7

Please sign in to comment.