paaas/.forgejo/workflows/build.yml
sirius e0f0e97d8c
Some checks failed
build-and-deploy / build (push) Failing after 14s
hostmode
2026-07-07 15:19:34 -04:00

22 lines
623 B
YAML

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