mirror of
https://github.com/HypoPG/hypopg
synced 2026-05-24 09:38:21 +00:00
Automatically trigger build of powa-archivist-git
This commit is contained in:
parent
28e3ab8c72
commit
ea063fec42
1 changed files with 30 additions and 0 deletions
30
.github/workflows/powa_archivist_git.yml
vendored
Normal file
30
.github/workflows/powa_archivist_git.yml
vendored
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
name: Trigger build and push of powa-archivist-git image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [REL1_STABLE]
|
||||
|
||||
env:
|
||||
TARGET_ORG: "powa-team"
|
||||
TARGET_REPO: "powa-podman"
|
||||
EVENT_TYPE: "powa-archivist-git"
|
||||
|
||||
jobs:
|
||||
trigger_build:
|
||||
name: Trigger build and push of powa-archivist-git in powa-podman repo
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Trigger the powa-archivist-git repository dispatch
|
||||
run: |
|
||||
# Set variables
|
||||
org="${{ env.TARGET_ORG }}"
|
||||
repo="${{ env.TARGET_REPO }}"
|
||||
event_type="${{ env.EVENT_TYPE }}"
|
||||
|
||||
curl -L \
|
||||
-X POST \
|
||||
-H "Accept: application/vnd.github+json" \
|
||||
-H "Authorization: Bearer ${{ secrets.DISPATCH_TOKEN }}" \
|
||||
-H "X-GitHub-Api-Version: 2022-11-28" \
|
||||
https://api.github.com/repos/${org}/${repo}/dispatches \
|
||||
-d "{\"event_type\": \"${event_type}\"}"
|
||||
Loading…
Reference in a new issue