Skip to content
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
20 changes: 11 additions & 9 deletions .github/workflows/publish_docker_image.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Create and publish a Docker image

on:
release:
types: [published]
workflow_dispatch:
push:
tags:
- '**'

permissions:
contents: read
Expand Down Expand Up @@ -37,11 +37,10 @@ jobs:
uses: docker/metadata-action@818d4b7b91585d195f67373fd9cb0332e31a7175
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
flavor: |
latest=auto
prefix=slim-,onlatest=true
suffix=

tags: |
type=ref,event=tag,prefix=slim-
type=raw,value=slim-latest

- name: Build and push Docker image (slim)
uses: docker/build-push-action@2eb1c1961a95fc15694676618e422e8ba1d63825
with:
Expand All @@ -51,12 +50,15 @@ jobs:
labels: ${{ steps.meta-slim.outputs.labels }}
build-args: |
VARIANT=slim

- name: Extract metadata (tags, labels) for Docker (full variant)
id: meta-full
uses: docker/metadata-action@818d4b7b91585d195f67373fd9cb0332e31a7175
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=ref,event=tag
type=raw,value=latest

- name: Build and push Docker image (full)
uses: docker/build-push-action@2eb1c1961a95fc15694676618e422e8ba1d63825
Expand Down