fix(build): Triggering Ansible
All checks were successful
Build BAB Application Deployment Artifact / build (push) Successful in 2m34s
All checks were successful
Build BAB Application Deployment Artifact / build (push) Successful in 2m34s
This commit is contained in:
@@ -54,14 +54,9 @@ jobs:
|
||||
|
||||
- name: Trigger Ansible Deploy Playbook
|
||||
if: steps.build.outputs.VERSION != ''
|
||||
uses: https://github.com/distributhor/workflow-webhook@v3
|
||||
with:
|
||||
webhook_url: ${{ vars.WEBHOOK_URL }}
|
||||
webhook_auth_type: bearer
|
||||
webhook_auth: ${{ secrets.WEBHOOK_SECRET }}
|
||||
verbose: true
|
||||
data: >
|
||||
{
|
||||
"artifact_url":
|
||||
"${{ gitea.server_url }}/${{ gitea.repository }}/releases/download/v${{ steps.build.outputs.VERSION }}/release-${{ steps.build.outputs.VERSION }}.tar.gz"
|
||||
}
|
||||
run: |
|
||||
curl --fail-with-body -sS \
|
||||
-H "Authorization: Bearer ${{ secrets.WEBHOOK_SECRET }}" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{"artifact_url":"${{ gitea.server_url }}/${{ gitea.repository }}/releases/download/v${{ steps.build.outputs.VERSION }}/release-${{ steps.build.outputs.VERSION }}.tar.gz"}' \
|
||||
"${{ vars.WEBHOOK_URL }}"
|
||||
|
||||
Reference in New Issue
Block a user