workflows: use variable tags for the stable build

This will make it easier to do some testing while I make sure that
this build is correct.
This commit is contained in:
Jordi Gutiérrez Hermoso 2024-07-11 17:25:32 -04:00 committed by jordigh
parent b6e48abf66
commit aafc9baac8

View File

@ -5,6 +5,16 @@ on:
types: [published] types: [published]
# Allows you to run this workflow manually from the Actions tab # Allows you to run this workflow manually from the Actions tab
workflow_dispatch: workflow_dispatch:
inputs:
tag:
description: "Tag for the resulting images"
type: string
required: True
default: 'stable'
env:
TAG: ${{ inputs.tag || 'stable' }}
DOCKER_HUB_OWNER: ${{ vars.DOCKER_HUB_OWNER || github.repository_owner }}
jobs: jobs:
push_to_registry: push_to_registry:
@ -47,7 +57,7 @@ jobs:
type=semver,pattern={{version}} type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}} type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}} type=semver,pattern={{major}}
stable ${{ env.TAG }}
- name: Set up QEMU - name: Set up QEMU
uses: docker/setup-qemu-action@v1 uses: docker/setup-qemu-action@v1