fix: repull docker images before deploying
This commit is contained in:
parent
9091d11810
commit
c1e8d52aea
1 changed files with 3 additions and 1 deletions
|
|
@ -42,9 +42,10 @@ jobs:
|
|||
cache-dependency-path: modules/frontend/package-lock.json
|
||||
|
||||
- name: Build frontend
|
||||
env:
|
||||
VITE_BACKEND_API_BASE_URL: ${{ vars.BACKEND_API_BASE_URL }}
|
||||
run: |
|
||||
cd modules/frontend
|
||||
echo "VITE_BACKEND_API_BASE_URL=${{ vars.BACKEND_API_BASE_URL }}" > .env
|
||||
npm install
|
||||
npm run build
|
||||
tar -czvf nyanimedb-frontend.tar.gz dist/
|
||||
|
|
@ -101,4 +102,5 @@ jobs:
|
|||
run: |
|
||||
cd deploy
|
||||
docker compose down || true
|
||||
docker-compose pull || true
|
||||
docker compose up -d
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue