Skip to content

Commit

Permalink
Add 'Trigger external deploy pipeline' job to github workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartcaunt committed Nov 15, 2024
1 parent d3f0f9b commit 19028b5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,12 @@ 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

0 comments on commit 19028b5

Please sign in to comment.