Skip to content

Commit

Permalink
Trigger build of powa-archivist on new release tag
Browse files Browse the repository at this point in the history
  • Loading branch information
rjuju committed Jun 22, 2024
1 parent 7d5bf9c commit 3b1fbb1
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/powa_archivist.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Trigger build and push of powa-archivist image

on:
tags:
- REL_*

env:
TARGET_REPO: "powa-podman"
EVENT_TYPE: "powa-archivist"

jobs:
trigger_build:
name: Trigger build and push of powa-archivist in powa-podman repo
runs-on: ubuntu-latest
steps:
- name: Trigger the powa-archivist-git repository dispatch
run: |
# Set variables
org="${{ github.repository_owner }}"
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}\"}"

0 comments on commit 3b1fbb1

Please sign in to comment.