Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(docker): accept tag flavors, default to prefix=v #25

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down