.
This commit is contained in:
16
.gitea/workflows/deploy.yml
Normal file
16
.gitea/workflows/deploy.yml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
name: deploy
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: "homesrv01"
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- name: notify zigbee2mqtt service
|
||||||
|
run: |
|
||||||
|
curl -X POST "${{secrets.PORTAINER_STACKS_ZIGBEE2MQTT_WEBHOOK_URL}}"
|
||||||
|
|
||||||
|
# - name: notify wyoming service
|
||||||
|
# run: |
|
||||||
|
# curl -X POST "${{secrets.PORTAINER_STACKS_WYOMING_WEBHOOK_URL}}"
|
||||||
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
name: deploy zigbee2mqtt
|
|
||||||
on: [push]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
deploy:
|
|
||||||
runs-on: "homesrv01"
|
|
||||||
steps:
|
|
||||||
- name: Portainer webhook
|
|
||||||
run: |
|
|
||||||
curl -X POST "${{secrets.PORTAINER_ZIGBEE2MQTT_WEBHOOK_URL}}"
|
|
||||||
@@ -5,8 +5,8 @@ doWork(){
|
|||||||
apt upgrade -y
|
apt upgrade -y
|
||||||
$scriptPath/../services/code-server/docker-run.sh
|
$scriptPath/../services/code-server/docker-run.sh
|
||||||
$scriptPath/../services/nginx/docker-run.sh
|
$scriptPath/../services/nginx/docker-run.sh
|
||||||
$scriptPath/../services/wyoming-faster-whisper/docker-run.sh
|
#$scriptPath/../services/wyoming-faster-whisper/docker-run.sh
|
||||||
$scriptPath/../services/wyoming-piper/docker-run.sh
|
#$scriptPath/../services/wyoming-piper/docker-run.sh
|
||||||
docker image prune -f
|
docker image prune -f
|
||||||
}
|
}
|
||||||
doWork 2>&1 | logger -s -t "auto-update"
|
doWork 2>&1 | logger -s -t "auto-update"
|
||||||
|
|||||||
Reference in New Issue
Block a user