build on tag
This commit is contained in:
@@ -1,13 +1,10 @@
|
||||
name: build-image
|
||||
run-name: build and push Docker-Image
|
||||
run-name: build and push Docker-Image with tag:${{ github.ref_name }}
|
||||
|
||||
on:
|
||||
workflow_dispatch: # Manuelles Auslösen des Workflows
|
||||
inputs:
|
||||
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'
|
||||
push:
|
||||
tags:
|
||||
- "*"
|
||||
|
||||
env:
|
||||
image_name: 404_games
|
||||
@@ -42,5 +39,5 @@ jobs:
|
||||
--file ./Dockerfile \
|
||||
--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 }}:${{ github.event.inputs.image_tag }} \
|
||||
--tag ${{ env.registry }}/${{ env.user }}/${{ env.image_name }}:${{ github.ref_name }} \
|
||||
--push ./
|
||||
|
||||
Reference in New Issue
Block a user