0
0

.gitea/workflows/deploy.yaml aktualisiert
All checks were successful
deploy-homer / prod-build (push) Successful in 0s

This commit is contained in:
Denys Konovalov 2023-12-07 20:47:12 +01:00
parent c25a8978f7
commit c45c5cd392

@ -1,24 +1,26 @@
name: copy-homer name: deploy-homer
on: on:
push: push:
branches: branches:
- main - main
jobs: defaults:
prod-build: run:
if: gitea.repository == 'gcg/homer-data' working-directory: /opt/data/homer
runs-on: act-runner-user
timeout-minutes: 5 jobs:
steps: prod-build:
- name: clone if: gitea.repository == 'gcg/homer-data'
uses: https://github.com/actions/checkout@v4 runs-on: act-runner-user
- name: deploy timeout-minutes: 5
run: | steps:
rsync -azr --delete ./ /opt/data/homer/ - name: pull
- name: notification run: |
uses: actions/telegram-action@main git pull
if: always() - name: notification
with: uses: actions/telegram-action@main
chat_id: ${{ secrets.TG_CHAT_ID }} if: always()
with:
chat_id: ${{ secrets.TG_CHAT_ID }}
token: ${{ secrets.TG_TOKEN }} token: ${{ secrets.TG_TOKEN }}