Skip to content

Commit

Permalink
New Docker Trigger workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
gpickin committed Apr 10, 2024
1 parent b49fada commit 9c613d7
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/triggerDocker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Trigger Docker Image Creation

on:
workflow_run:
workflows: ["release"]
types: [completed]
branches:
- "development"

jobs:
trigger:
runs-on: ubuntu-latest

steps:
- name: Trigger Workflow in Another Repository
run: |
# Set the required variables
repo_owner="ortus-solutions-private"
repo_name="docker-bx"
event_type="trigger-workflow"
service=release"
version="1.0.0"
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/$repo_owner/$repo_name/dispatches \
-d "{\"event_type\": \"$event_type\", \"client_payload\": {\"service\": \"$service\", \"version\": \"$version\", \"unit\": false, \"integration\": true}}"

0 comments on commit 9c613d7

Please sign in to comment.