hg: pkg: new version release !skipChangelog
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:
@@ -9,9 +9,7 @@ jobs:
|
||||
deploy:
|
||||
runs-on: splendid-bear
|
||||
steps:
|
||||
- name: Deploy
|
||||
env:
|
||||
PROD_ENV_FILE: ${{ secrets.PROD_ENV_FILE }}
|
||||
- name: Checkout tag
|
||||
run: |
|
||||
set -e
|
||||
export HOME=/tmp
|
||||
@@ -19,5 +17,19 @@ jobs:
|
||||
cd "${{ vars.PROD_APP_DIR }}"
|
||||
git fetch --tags
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user