.gitea/workflows/create_and_push_multiarch_container.yml aktualisiert
change action
This commit is contained in:
@@ -4,9 +4,9 @@ on:
|
|||||||
workflow_dispatch: # Manuelles Auslösen des Workflows
|
workflow_dispatch: # Manuelles Auslösen des Workflows
|
||||||
inputs:
|
inputs:
|
||||||
image_tag:
|
image_tag:
|
||||||
description: 'Tag für das Docker-Image (z.B. latest oder v1.0.0)'
|
description: 'Tag für das Docker-Image z.B. v1.0.0 (latest wird immer mit gebaut)'
|
||||||
required: true
|
required: true
|
||||||
default: 'latest'
|
default: '1.0.1'
|
||||||
|
|
||||||
env:
|
env:
|
||||||
image_name: 404_games
|
image_name: 404_games
|
||||||
@@ -31,12 +31,6 @@ jobs:
|
|||||||
username: ${{ env.user }}
|
username: ${{ env.user }}
|
||||||
password: ${{ secrets.DOCKER_PULL_TOKEN }}
|
password: ${{ secrets.DOCKER_PULL_TOKEN }}
|
||||||
|
|
||||||
- name: Get Meta
|
|
||||||
id: meta
|
|
||||||
run: |
|
|
||||||
echo REPO_VERSION=$(git describe --tags --always | sed 's/^v//') >> $GITHUB_OUTPUT
|
|
||||||
echo DOCKERFILE_VERSION=$(grep 'LABEL version=' Dockerfile | sed 's/.*LABEL version="\([^"]*\)".*/\1/') >> $GITHUB_OUTPUT
|
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
run: |
|
run: |
|
||||||
# Stelle sicher, dass Buildx aktiviert ist
|
# Stelle sicher, dass Buildx aktiviert ist
|
||||||
@@ -46,6 +40,6 @@ jobs:
|
|||||||
docker buildx build \
|
docker buildx build \
|
||||||
--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 }}:${{ steps.meta.outputs.DOCKERFILE_VERSION }} \
|
--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.event.inputs.image_tag }} \
|
||||||
--push ./
|
--push ./
|
||||||
|
|||||||
Reference in New Issue
Block a user