This commit is contained in:
charlesgauthereau
2026-03-06 18:27:54 +01:00
parent 9a3be8d5a5
commit e4de903cc9
2 changed files with 21 additions and 4 deletions
+4 -1
View File
@@ -3,6 +3,9 @@ name: Docker Publish
on:
workflow_call:
inputs:
version:
required: true
type: string
image_name:
required: false
type: string
@@ -50,7 +53,7 @@ jobs:
id: prep
run: |
ARCH=${{ matrix.platform == 'linux/amd64' && 'amd64' || 'arm64' }}
echo "image=${{ inputs.image_name }}:${GITHUB_REF#refs/tags/}-$ARCH" >> $GITHUB_OUTPUT
echo "image=${{ inputs.image_name }}:${{inputs.version}}-$ARCH" >> $GITHUB_OUTPUT
echo "safe_platform=${{ matrix.platform == 'linux/amd64' && 'linux-amd64' || 'linux-arm64' }}" >> $GITHUB_OUTPUT
- name: Build and push image