This commit is contained in:
parent
838f86e11f
commit
f73f146aa1
1 changed files with 32 additions and 0 deletions
32
.forgejo/workflows/deploy.yml
Normal file
32
.forgejo/workflows/deploy.yml
Normal file
|
|
@ -0,0 +1,32 @@
|
||||||
|
name: Deploy landingpage
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: landingpage-deploy
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: deploy-host
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Deploy landingpage on server
|
||||||
|
run: |
|
||||||
|
set -e
|
||||||
|
|
||||||
|
mkdir -p ~/.ssh
|
||||||
|
chmod 700 ~/.ssh
|
||||||
|
ssh-keyscan -p 222 git.noctura.dev >> ~/.ssh/known_hosts
|
||||||
|
|
||||||
|
git config --global --add safe.directory /opt/noctura/noctura
|
||||||
|
|
||||||
|
cd /opt/noctura/noctura
|
||||||
|
git fetch origin
|
||||||
|
git reset --hard origin/main
|
||||||
|
|
||||||
|
docker compose up -d --build
|
||||||
|
docker image prune -f
|
||||||
Loading…
Reference in a new issue