This commit is contained in:
parent
09f9a767ed
commit
e43f74ce8e
1 changed files with 26 additions and 0 deletions
26
.forgejo/workflows/deploy.yml
Normal file
26
.forgejo/workflows/deploy.yml
Normal file
|
|
@ -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
|
||||||
Loading…
Add table
Reference in a new issue