35 lines
982 B
YAML
35 lines
982 B
YAML
name: waterfall-wiki CI and deployment
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- 'apps/waterfall-wiki/**'
|
|
- '.gitea/workflows/waterfall-wiki.yml'
|
|
- 'Dockerfile'
|
|
- 'compose.yml'
|
|
- 'scripts/deploy.sh'
|
|
- 'scripts/wiki-image-lifecycle.py'
|
|
- 'scripts/infra.sh'
|
|
- 'scripts/auth-admin.sh'
|
|
- 'scripts/integration.sh'
|
|
- 'pnpm-workspace.yaml'
|
|
|
|
jobs:
|
|
verify-and-deploy:
|
|
if: gitea.ref == 'refs/heads/main' && gitea.event_name == 'push'
|
|
runs-on: ces-control
|
|
timeout-minutes: 45
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Build, verify, deploy and retain wiki images
|
|
env:
|
|
RELEASE_SHA: ${{ gitea.sha }}
|
|
run: |
|
|
if [ "$(id -u)" -eq 0 ]; then
|
|
python3 scripts/wiki-image-lifecycle.py ci --sha "$RELEASE_SHA"
|
|
else
|
|
sudo -n python3 scripts/wiki-image-lifecycle.py ci --sha "$RELEASE_SHA"
|
|
fi
|