From 2a887797e3d56d44a263fc6c7757762dc9a6d66e Mon Sep 17 00:00:00 2001 From: Ruslan <11838981+feedmeapples@users.noreply.github.com> Date: Tue, 25 Jan 2022 10:42:17 -0800 Subject: [PATCH] Add pipeline to trigger Temporal docker images build (#2399) --- .github/workflows/trigger-publish.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/trigger-publish.yml diff --git a/.github/workflows/trigger-publish.yml b/.github/workflows/trigger-publish.yml new file mode 100644 index 00000000000..d98441c9d66 --- /dev/null +++ b/.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 }}"}'