Szablon witryny, docker i workflow gitea
This commit is contained in:
27
.gitea/workflows/deploy.yml
Normal file
27
.gitea/workflows/deploy.yml
Normal file
@@ -0,0 +1,27 @@
|
||||
name: Deploy FUZ 2.0 to Contabo
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: contabo-runner
|
||||
|
||||
steps:
|
||||
- name: Pull latest code
|
||||
run: |
|
||||
cd /opt/fuz-site
|
||||
git reset --hard HEAD
|
||||
git pull
|
||||
|
||||
- name: Build image
|
||||
run: |
|
||||
cd /opt/fuz-site
|
||||
docker compose -f docker-compose.prod.yml build
|
||||
|
||||
- name: Restart service
|
||||
run: |
|
||||
cd /opt/fuz-site
|
||||
docker compose -f docker-compose.prod.yml up -d
|
||||
Reference in New Issue
Block a user