web/.gitea/workflows/pipeline.yml

23 lines
646 B
YAML
Raw Normal View History

2024-04-15 18:49:55 +00:00
name: Subsonics Deployment
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Update and upgrade server
run: |
2024-04-15 19:00:18 +00:00
ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null raphix@raphix.fr sudo apt update -y
ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null raphix@raphix.fr sudo apt upgrade -y
2024-04-15 18:49:55 +00:00
- name: Run deployment script
2024-04-15 19:00:18 +00:00
run: ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null raphix@raphix.fr sudo -S -u gitlab-ci /home/gitlab-ci/subsonics_deploy.sh