site/.forgejo/workflows/deploy.yml

34 lines
649 B
YAML
Raw Normal View History

2025-07-22 17:23:13 -04:00
name: Deploy SvelteKit
on:
push:
branches:
- main
2025-07-22 17:38:21 -04:00
workflow_dispatch:
2025-07-22 17:23:13 -04:00
jobs:
deploy:
2025-07-23 12:18:19 -04:00
runs-on: docker
container:
2025-07-23 16:32:56 +00:00
image: node:22-alpine
2025-07-23 12:18:19 -04:00
options: --network=host # (Optional, more below)
2025-07-22 17:23:13 -04:00
steps:
2025-07-23 12:20:47 -04:00
- name: Checkout repo
uses: actions/checkout@v4
with:
persist-credentials: false
2025-07-23 16:30:11 +00:00
2025-07-23 16:34:19 +00:00
- name: Install Docker + Compose
run: |
apk add --no-cache docker-cli curl py3-pip
pip install docker-compose
2025-07-23 12:16:49 -04:00
2025-07-22 17:23:13 -04:00
- name: Deploy with Docker
run: |
docker compose down
docker compose build
docker compose up -d