Skip to content

Commit

Permalink
Add pipeline to trigger Temporal docker images build
Browse files Browse the repository at this point in the history
  • Loading branch information
feedmeapples committed Jan 21, 2022
1 parent 7e9a789 commit de907b9
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/trigger-publish.yml
@@ -0,0 +1,26 @@
name: 'Trigger Docker image build'

on:
push:
branches:
- main
workflow_dispatch:

jobs:
trigger:
name: 'trigger Docker image build'
runs-on: ubuntu-latest

defaults:
run:
shell: bash

steps:
- name: Dispatch docker builds Github Action
env:
PAT: ${{ secrets.COMMANDER_DATA_TOKEN }}
PARENT_REPO: temporalio/docker-builds
PARENT_BRANCH: main
WORKFLOW_ID: update-submodules.yml
run: |
curl -fL -X POST -H "Accept: application/vnd.github.v3+json" -H "Authorization: token ${{ env.PAT }}" https://api.github.com/repos/${{ env.PARENT_REPO }}/actions/workflows/${{ env.WORKFLOW_ID }}/dispatches -d '{"ref":"${{ env.PARENT_BRANCH }}"}'

0 comments on commit de907b9

Please sign in to comment.