From e43f74ce8ef3f80f257cb477a933c31473bddbfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Faguet?= Date: Tue, 25 Feb 2025 20:27:04 +0100 Subject: [PATCH] feat: add runner --- .forgejo/workflows/deploy.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .forgejo/workflows/deploy.yml diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml new file mode 100644 index 0000000..507ab9d --- /dev/null +++ b/.forgejo/workflows/deploy.yml @@ -0,0 +1,26 @@ +name: Deploy on Main + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + deploy: + runs-on: deadpool + steps: + # - name: Checkout repository + # uses: actions/checkout@v4 + + - name: Pull latest changes + run: | + cd /home/daydreel/clem-website + git pull + + - name: Rebuild and restart container + run: | + cd /home/daydreel/clem-website + docker-compose up -d --build --no-cache