From b4765b9fc1b4048c643e1475893514e796240ed3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20L=C3=B6nnegren?= Date: Wed, 18 Sep 2024 15:16:22 +0200 Subject: [PATCH] Take ref as input in push-images workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fredrik Lönnegren --- .github/workflows/push-images.yaml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/push-images.yaml b/.github/workflows/push-images.yaml index cc9f859844b..80cf3042395 100644 --- a/.github/workflows/push-images.yaml +++ b/.github/workflows/push-images.yaml @@ -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 @@ -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 @@ -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