From 2834bf7985ae4325a17b77b7643c7348be95d47a Mon Sep 17 00:00:00 2001 From: Johanna Dorothea Reichmann Date: Thu, 19 Oct 2023 11:41:31 +0200 Subject: [PATCH] chore(docker): accept tag flavors, default to prefix=v --- .github/workflows/docker.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 628a878..6ceaeed 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -28,6 +28,12 @@ on: type=ref,event=pr required: false type: string + flavor: + description: "Behaviour for custom tags for docker-metadata" + default: | + prefix=v + required: false + type: string artifact_name: description: "Name of the artifact to be downloaded before" required: false @@ -94,6 +100,7 @@ jobs: with: images: ${{ inputs.registry }}/${{ inputs.image_name }} tags: ${{ inputs.tags }} + flavor: ${{ inputs.flavor }} - name: Build and push Docker image id: build @@ -149,6 +156,7 @@ jobs: with: images: ${{ inputs.registry }}/${{ inputs.image_name }} tags: ${{ inputs.tags }} + flavor: ${{ inputs.flavor }} - name: Log into registry ${{ inputs.registry }} uses: famedly/login-action@v2