Files
srvmon/.gitea/workflows/deploy.yaml
T
luis 4b59d56c7f
Build and Deploy / build-deploy (push) Failing after 38s
Add build and deploy workflow
2026-03-31 22:01:12 +01:00

25 lines
468 B
YAML

name: Build and Deploy
on:
push:
branches: [master]
jobs:
build-deploy:
runs-on: ubuntu-latest
container:
image: rust:latest
volumes:
- /opt/srvmon:/deploy
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --release
- name: Deploy
run: |
cp target/release/srvmon /deploy/srvmon.new
mv /deploy/srvmon.new /deploy/srvmon
systemctl restart srvmon