Some checks failed
GitOps Automatic Deployment / GitOps Automatic Deployment (push) Failing after 8s
33 lines
955 B
YAML
33 lines
955 B
YAML
name: GitOps Automatic Deployment
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
GitOps Automatic Deployment:
|
|
runs-on: gitea-runner-mkdocs
|
|
|
|
steps:
|
|
- name: Install Node.js, git, rsync, and curl
|
|
run: |
|
|
apk add --no-cache nodejs npm git rsync curl
|
|
|
|
- name: Checkout Repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Copy Repository Data to Production Server
|
|
run: |
|
|
rsync -a --delete --exclude='.git/' --exclude='.gitea/' . /Gitops_Destination/
|
|
|
|
- name: Trigger Material MKDocs Container Re-Deployment via Portainer Webhook
|
|
run: |
|
|
curl --fail --show-error --silent --insecure \
|
|
-X POST \
|
|
"https://192.168.3.48:9443/api/stacks/webhooks/132460b4-289a-4a0c-abde-3551a9b4cda0"
|
|
|
|
- name: Notify via NTFY
|
|
if: always()
|
|
run: |
|
|
curl -d "https://docs.bunny-lab.io - Workflow Completed" https://ntfy.bunny-lab.io/gitea-runners
|