chore: build image for digest and release on workflow_dispatch (#6287)

This commit is contained in:
Stefan Benz
2023-08-10 14:21:01 +02:00
committed by GitHub
parent 6e39f85608
commit 3b9dabcf36
9 changed files with 97 additions and 123 deletions

View File

@@ -6,7 +6,7 @@ on:
semantic_version:
required: true
type: string
image:
build_image_name:
required: true
type: string
image_name:
@@ -56,20 +56,20 @@ jobs:
run: |
docker buildx imagetools create \
--tag ${{ inputs.image_name }}:${{ needs.version.outputs.version }} \
${{ inputs.image }}
${{ inputs.build_image_name }}
docker buildx imagetools create \
--tag ${{ inputs.image_name }}:${{ needs.version.outputs.version }}-debug \
${{ inputs.image }}-debug
${{ inputs.build_image_name }}-debug
docker buildx imagetools create \
--tag ${{ inputs.google_image_name }}:${{ needs.version.outputs.version }} \
${{ inputs.image }}
${{ inputs.build_image_name }}
-
name: Publish latest
if: ${{ github.ref_name == 'next' }}
run: |
docker buildx imagetools create \
--tag ${{ inputs.image_name }}:latest \
${{ inputs.image }}
${{ inputs.build_image_name }}
docker buildx imagetools create \
--tag ${{ inputs.image_name }}:latest-debug \
${{ inputs.image }}-debug
${{ inputs.build_image_name }}-debug