Skip to content

Commit b4765b9

Browse files
committed
Take ref as input in push-images workflow
Signed-off-by: Fredrik Lönnegren <[email protected]>
1 parent 064546f commit b4765b9

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/push-images.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
name: Build and push images
22

33
on:
4-
push:
5-
tags:
6-
- 'v*.*.*'
74
workflow_dispatch:
85
inputs:
6+
ref:
7+
type: string
8+
required: true
99
platforms:
1010
type: string
1111
default: linux/x86_64,linux/arm64
@@ -27,7 +27,7 @@ jobs:
2727
install: true
2828
- uses: actions/checkout@v4
2929
with:
30-
ref: ${{ github.ref_name }}
30+
ref: ${{ github.event.inputs.ref }}
3131
- run: |
3232
git fetch --prune --unshallow
3333
- name: Log in to ghcr.io
@@ -37,6 +37,5 @@ jobs:
3737
username: ${{ github.actor }}
3838
password: ${{ secrets.GITHUB_TOKEN }}
3939
- name: Build toolkit
40-
if: ${{ github.event.inputs.build-toolkit }}
4140
run: |
42-
make PLATFORM=${{ github.event.inputs.platforms }} DOCKER_ARGS=--push VERSION=${{ github.ref_name }} build
41+
make PLATFORM=${{ github.event.inputs.platforms }} DOCKER_ARGS=--push VERSION=${{ github.event.inputs.ref }} build

0 commit comments

Comments
 (0)