mirror of
https://github.com/theoleuthardt/werkzeugkiste.git
synced 2026-06-13 09:37:53 +00:00
fix: frontend and backend now get variables at build time not runtime
This commit is contained in:
parent
607d496f2a
commit
776ed29bca
6 changed files with 17 additions and 11 deletions
4
.github/workflows/deploy.yml
vendored
4
.github/workflows/deploy.yml
vendored
|
|
@ -39,6 +39,8 @@ jobs:
|
|||
context: ./frontend
|
||||
push: true
|
||||
tags: ${{ secrets.DOCKERHUB_USERNAME }}/werkzeugkiste-frontend:latest
|
||||
build-args: |
|
||||
NEXT_PUBLIC_BACKEND_URL=${{ secrets.NEXT_PUBLIC_BACKEND_URL }}
|
||||
|
||||
- name: Build and Push Backend
|
||||
uses: docker/build-push-action@v6
|
||||
|
|
@ -46,6 +48,8 @@ jobs:
|
|||
context: ./backend
|
||||
push: true
|
||||
tags: ${{ secrets.DOCKERHUB_USERNAME }}/werkzeugkiste-backend:latest
|
||||
build-args: |
|
||||
CORS_ALLOWED_ORIGIN=${{ secrets.CORS_ALLOWED_ORIGIN }}
|
||||
|
||||
deploy-on-server:
|
||||
needs: docker-build-push
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue