Skip to content

Commit 23336bd

Browse files
committed
Allow build on any branch, tag, or commit.
1 parent 9e467a6 commit 23336bd

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/release.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,15 @@ concurrency: build
33
permissions: read-all
44

55
on:
6+
67
workflow_dispatch:
8+
inputs:
9+
reference:
10+
description: Branch, tag, or hash of commit to build.
11+
required: false
12+
default: main
13+
type: string
14+
715
push:
816
tags: ['v*'] # Build and publish image on release.
917

@@ -21,6 +29,8 @@ jobs:
2129
steps:
2230
- name: Checkout repository
2331
uses: actions/checkout@v3
32+
with:
33+
ref: ${{ inputs.reference }}
2434

2535
- name: Log in to the Container registry
2636
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9

0 commit comments

Comments
 (0)