mirror of
https://github.com/DerDavidBohl/dirigent-spring.git
synced 2026-01-05 00:50:04 -06:00
Trigger Build action after Publish
This commit is contained in:
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@@ -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:
|
||||
|
||||
7
.github/workflows/publish.yml
vendored
7
.github/workflows/publish.yml
vendored
@@ -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 }}"}'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user