Skip to content

Commit

Permalink
Merge pull request #17 from i5okie/feat/workflow
Browse files Browse the repository at this point in the history
[Workflow] Add manual run option
  • Loading branch information
WadeBarnes authored Feb 4, 2025
2 parents aafbfc9 + 09a1a3f commit 41a83a0
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/build_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ on:
release:
types: [published]
workflow_dispatch:
inputs:
tag:
description: 'Tag to build (leave empty for latest)'
required: false
default: ''

permissions:
packages: write
Expand All @@ -15,7 +20,10 @@ jobs:
runs-on: ubuntu-latest
if: github.repository_owner == 'bcgov'
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.inputs.tag || github.ref }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand All @@ -33,10 +41,10 @@ jobs:
with:
images: ghcr.io/${{ github.repository }}/openshift-solr
tags: |
type=raw,value=${{ github.event.inputs.tag }}
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=ref
type=sha
type=ref,event=tag
- name: Build and push image
id: builder
Expand Down

0 comments on commit 41a83a0

Please sign in to comment.