ci: use Portainer GitOps polling #85
@@ -1,20 +0,0 @@
|
|||||||
name: Deploy production stack
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
deploy:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Trigger Portainer Git deployment
|
|
||||||
env:
|
|
||||||
PORTAINER_WEBHOOK_URL: ${{ secrets.PORTAINER_WEBHOOK_URL }}
|
|
||||||
run: |
|
|
||||||
set -eu
|
|
||||||
test -n "$PORTAINER_WEBHOOK_URL"
|
|
||||||
curl --fail --silent --show-error --retry 3 --retry-delay 5 \
|
|
||||||
--request POST "$PORTAINER_WEBHOOK_URL"
|
|
||||||
Reference in New Issue
Block a user