e2e: input to set additional tag

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax 2023-02-09 12:53:34 +01:00
parent 695ee8547d
commit f74fd039f3
No known key found for this signature in database
GPG Key ID: 3248E46B6BB8C7F7

View File

@ -11,13 +11,16 @@ on:
description: 'BuildKit image' description: 'BuildKit image'
default: 'moby/buildkit:buildx-stable-1' default: 'moby/buildkit:buildx-stable-1'
required: false required: false
tag:
description: 'Additional tag to push'
required: false
schedule: schedule:
- cron: '0 10 * * *' - cron: '0 10 * * *'
push: push:
branches: branches:
- 'master' - 'master'
tags: tags:
- v* - 'v*'
env: env:
BUILDX_VERSION: latest BUILDX_VERSION: latest
@ -85,6 +88,10 @@ jobs:
uses: docker/metadata-action@v4 uses: docker/metadata-action@v4
with: with:
images: ${{ matrix.slug }} images: ${{ matrix.slug }}
tags: |
type=ref,event=branch
type=ref,event=tag
type=raw,value=${{ inputs.tag }},enable=${{ inputs.tag != '' }}
- -
name: Set up QEMU name: Set up QEMU
uses: docker/setup-qemu-action@v2 uses: docker/setup-qemu-action@v2