Private
Public Access
1
0

chg: pkg: implement CD script to Gitea and add docs to the process #4
Some checks failed
Deploy to Production / deploy (push) Has been cancelled

This commit is contained in:
2026-04-14 12:55:47 +02:00
parent 82465322f2
commit 9d51654aec
6 changed files with 135 additions and 6 deletions

View File

@@ -0,0 +1,19 @@
name: Deploy to Production
on:
push:
tags:
- 'v*'
jobs:
deploy:
runs-on: self-hosted
steps:
- name: Deploy
run: |
set -e
cd "${{ vars.PROD_APP_DIR }}"
git fetch --tags
git checkout "${{ gitea.ref_name }}"
printf '%s' '${{ secrets.PROD_ENV_FILE }}' > .env
docker compose up -d --build