Skip to content

Commit

Permalink
build: add deploy job
Browse files Browse the repository at this point in the history
  • Loading branch information
m8vago committed Dec 9, 2024
1 parent 916ac57 commit 59f3004
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy_external.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
workflows:
- 'product_builder'
branches:
- 'feat/release-candidate'
- 'develop'
types:
- completed
permissions:
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/product_builder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -765,3 +765,15 @@ jobs:
cosign sign --yes --key cosign.key $(docker inspect --format='{{index .RepoDigests 0}}' ${DOCKERHUB_REGISTRY}/kratos:${{ needs.gather_changes.outputs.tag }} )
env:
COSIGN_PASSWORD: ${{ secrets.COSIGN_PASSWORD }}
deploy:
runs-on: ubuntu-22.04
needs: [go_push, crux_push, crux-ui_push, kratos_push]
environment: Workflow - Protected
steps:
- name: Execute dedicated Sunilium instance webhook
run: |
if curl -s -X POST --fail --head 'Authorization: Bearer ${{secrets.SUN_DYO_WEBHOOK_TOKEN}}' ${{secrets.SUN_DYO_WEBHOOK_API_URL}}; then
echo "Deployment successful."
else
exit 1
fi

0 comments on commit 59f3004

Please sign in to comment.