From 4025ca13f75fd15d5772bb136e3a265ab28f4af6 Mon Sep 17 00:00:00 2001 From: Stuart Caunt Date: Fri, 15 Nov 2024 10:11:26 +0100 Subject: [PATCH] Add 'Trigger external deploy pipeline' job to github workflow. --- .github/workflows/docker-image.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 655ef10..739d9ba 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -42,3 +42,13 @@ jobs: file : ./Dockerfile push: true tags: ${{ steps.meta.outputs.tags }} + + - name: Trigger external deploy pipeline + if: success() + run: | + if [ -z "${{ secrets.DEPLOY_PIPELINE_URL }}" ]; then + echo "Error: DEPLOY_PIPELINE_URL is not set" + else + curl -X POST "${{ secrets.DEPLOY_PIPELINE_URL }}" + fi + \ No newline at end of file