Private
Public Access
1
0

hg: pkg: new version release !skipChangelog
Some checks failed
Deploy to Production / deploy (push) Has been cancelled

This commit is contained in:
2026-04-14 13:31:21 +02:00
parent 68a25aafa4
commit 62915fe5e4

View File

@@ -9,9 +9,7 @@ jobs:
deploy: deploy:
runs-on: splendid-bear runs-on: splendid-bear
steps: steps:
- name: Deploy - name: Checkout tag
env:
PROD_ENV_FILE: ${{ secrets.PROD_ENV_FILE }}
run: | run: |
set -e set -e
export HOME=/tmp export HOME=/tmp
@@ -19,5 +17,19 @@ jobs:
cd "${{ vars.PROD_APP_DIR }}" cd "${{ vars.PROD_APP_DIR }}"
git fetch --tags git fetch --tags
git checkout "${{ gitea.ref_name }}" git checkout "${{ gitea.ref_name }}"
printf '%s' "$PROD_ENV_FILE" > .env
docker compose up -d --build - name: Write .env
env:
PROD_ENV_FILE: ${{ secrets.PROD_ENV_FILE }}
run: |
printf '%s' "$PROD_ENV_FILE" > "${{ vars.PROD_APP_DIR }}/.env"
- name: Build image
run: |
cd "${{ vars.PROD_APP_DIR }}"
docker compose build
- name: Start services
run: |
cd "${{ vars.PROD_APP_DIR }}"
docker compose up -d