teste
Build and Deploy Vendaweb React / Build Docker Image and Push to Harbor (push) Successful in 4m52s
Details
Build and Deploy Vendaweb React / Build Docker Image and Push to Harbor (push) Successful in 4m52s
Details
This commit is contained in:
parent
0e57904218
commit
b26fc3b6f3
|
|
@ -4,6 +4,7 @@ on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push:
|
build-and-push:
|
||||||
|
|
@ -55,6 +56,10 @@ jobs:
|
||||||
- name: Notificar Portainer via Webhook
|
- name: Notificar Portainer via Webhook
|
||||||
if: success()
|
if: success()
|
||||||
run: |
|
run: |
|
||||||
|
if [ -z "${{ secrets.PORTAINER_WEBHOOK_FRONT }}" ]; then
|
||||||
|
echo "Error: PORTAINER_WEBHOOK_FRONT secret is not set."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
echo "Notificando Portainer para atualizar o container..."
|
echo "Notificando Portainer para atualizar o container..."
|
||||||
curl -f -X POST "${{ secrets.PORTAINER_WEBHOOK_FRONT }}" \
|
curl -f -X POST "${{ secrets.PORTAINER_WEBHOOK_FRONT }}" \
|
||||||
--max-time 30 \
|
--max-time 30 \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue