27 lines
670 B
YAML

name: Deploy to OCI
on:
push:
branches:
- master
jobs:
deploy:
runs-on: self-hosted
env:
PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/fam/.cargo/bin:/home/fam/.local/bin
steps:
- name: Checkout
run: |
if [ -d .git ]; then
git fetch origin master && git reset --hard origin/master && git clean -fd
else
git clone ${{ gitea.server_url }}/${{ gitea.repository }} . && git checkout ${{ gitea.sha }}
fi
- name: Install frontend dependencies
run: cd web && /usr/bin/npm ci
- name: Deploy to OCI
run: make deploy-oci