Trigger Build action after Publish

This commit is contained in:
DerDavidBohl
2025-10-06 18:47:46 +02:00
parent 0802478efe
commit 90e09af5e1
2 changed files with 9 additions and 2 deletions

View File

@@ -1,5 +1,7 @@
name: Build Docker Image
on:
repository_dispatch:
types: [tag-created]
workflow_dispatch:
pull_request:
types:
@@ -9,8 +11,6 @@ on:
push:
branches:
- '*'
tags:
- 'v*'
# Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds.
env:

View File

@@ -65,3 +65,10 @@ jobs:
GITHUB_REPOSITORY: ${{ github.repository }}
GITHUB_REF_NAME: ${{ github.ref_name }}
- name: Trigger Build
uses: peter-evans/repository-dispatch@v4
with:
token: ${{ secrets.PUSH_PAT }}
event-type: tag-created
client-payload: '{"tag": "v${{ github.event.inputs.version }}"}'