Skip to content

Commit

Permalink
Take ref as input in push-images workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Fredrik Lönnegren <[email protected]>
  • Loading branch information
frelon committed Sep 20, 2024
1 parent 064546f commit b4765b9
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/push-images.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Build and push images

on:
push:
tags:
- 'v*.*.*'
workflow_dispatch:
inputs:
ref:
type: string
required: true
platforms:
type: string
default: linux/x86_64,linux/arm64
Expand All @@ -27,7 +27,7 @@ jobs:
install: true
- uses: actions/checkout@v4
with:
ref: ${{ github.ref_name }}
ref: ${{ github.event.inputs.ref }}
- run: |
git fetch --prune --unshallow
- name: Log in to ghcr.io
Expand All @@ -37,6 +37,5 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build toolkit
if: ${{ github.event.inputs.build-toolkit }}
run: |
make PLATFORM=${{ github.event.inputs.platforms }} DOCKER_ARGS=--push VERSION=${{ github.ref_name }} build
make PLATFORM=${{ github.event.inputs.platforms }} DOCKER_ARGS=--push VERSION=${{ github.event.inputs.ref }} build

0 comments on commit b4765b9

Please sign in to comment.