32 lines
630 B
YAML
32 lines
630 B
YAML
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
|