2026-07-07 14:42:12 -04:00
|
|
|
name: build-and-deploy
|
|
|
|
|
on:
|
|
|
|
|
push:
|
|
|
|
|
branches: [main]
|
|
|
|
|
jobs:
|
|
|
|
|
build:
|
|
|
|
|
runs-on: docker
|
|
|
|
|
steps:
|
2026-07-07 15:19:34 -04:00
|
|
|
- name: Install node (for checkout)
|
|
|
|
|
run: |
|
|
|
|
|
which node || (apk add --no-cache nodejs npm >/dev/null 2>&1) || true
|
|
|
|
|
node --version
|
2026-07-07 15:18:10 -04:00
|
|
|
- name: Checkout
|
|
|
|
|
uses: https://code.forgejo.org/actions/checkout@v4
|
2026-07-07 15:19:34 -04:00
|
|
|
- name: Build image
|
|
|
|
|
run: |
|
|
|
|
|
docker build --platform linux/arm64 -t localhost/paaas:latest .
|
|
|
|
|
- name: Deploy
|
2026-07-07 15:18:10 -04:00
|
|
|
run: |
|
2026-07-07 15:19:34 -04:00
|
|
|
cd /opt/siriusdevops/services
|
|
|
|
|
docker compose up -d --force-recreate paaas
|
|
|
|
|
docker image prune -f
|