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:
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user