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
Some checks failed
Deploy to Production / deploy (push) Has been cancelled
This commit is contained in:
19
.gitea/workflows/deploy.yml
Normal file
19
.gitea/workflows/deploy.yml
Normal 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
|
||||
Reference in New Issue
Block a user