build on tag
This commit is contained in:
@@ -1,13 +1,10 @@
|
|||||||
name: build-image
|
name: build-image
|
||||||
run-name: build and push Docker-Image
|
run-name: build and push Docker-Image with tag:${{ github.ref_name }}
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch: # Manuelles Auslösen des Workflows
|
push:
|
||||||
inputs:
|
tags:
|
||||||
image_tag:
|
- "*"
|
||||||
description: 'Tag für das Docker-Image z.B. v1.0.0 (latest wird immer mit gebaut)'
|
|
||||||
required: true
|
|
||||||
default: '1.1.0'
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
image_name: 404_games
|
image_name: 404_games
|
||||||
@@ -42,5 +39,5 @@ jobs:
|
|||||||
--file ./Dockerfile \
|
--file ./Dockerfile \
|
||||||
--platform linux/amd64,linux/386,linux/arm64,linux/arm/v7 \
|
--platform linux/amd64,linux/386,linux/arm64,linux/arm/v7 \
|
||||||
--tag ${{ env.registry }}/${{ env.user }}/${{ env.image_name }}:latest \
|
--tag ${{ env.registry }}/${{ env.user }}/${{ env.image_name }}:latest \
|
||||||
--tag ${{ env.registry }}/${{ env.user }}/${{ env.image_name }}:${{ github.event.inputs.image_tag }} \
|
--tag ${{ env.registry }}/${{ env.user }}/${{ env.image_name }}:${{ github.ref_name }} \
|
||||||
--push ./
|
--push ./
|
||||||
|
|||||||
Reference in New Issue
Block a user