Skip to content

Commit 85bfdc0

Browse files
committed
Add workflow_dispatch to enable manually triggering builds
This resolves #167 (comment).
1 parent 86a08d1 commit 85bfdc0

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/docker-publish.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ name: Publish multi-arch Docker image
33
on:
44
release:
55
types: [published]
6+
workflow_dispatch:
7+
inputs:
8+
overpass_version:
9+
description: 'Version number to build (e.g. 0.7.62)'
10+
required: true
11+
type: string
612

713
permissions:
814
contents: read
@@ -17,7 +23,7 @@ jobs:
1723
output: image
1824
push: true
1925
platforms: linux/amd64,linux/arm64
20-
build-args: OVERPASS_VERSION=${{ github.event.release.tag_name }}
26+
build-args: OVERPASS_VERSION=${{ github.event.release.tag_name || inputs.overpass_version }}
2127
meta-images: ${{ vars.DOCKERHUB_USERNAME }}/overpass-api
2228
meta-tags: type=semver,pattern={{version}}
2329
secrets:

0 commit comments

Comments
 (0)