fix: dynamic node environment variable

This commit is contained in:
theoleuthardt 2025-02-28 15:23:34 +01:00
parent a3e7998d11
commit 0505620145
4 changed files with 10 additions and 3 deletions

View file

@ -41,6 +41,7 @@ jobs:
tags: ${{ secrets.DOCKERHUB_USERNAME }}/werkzeugkiste-frontend:latest
build-args: |
NEXT_PUBLIC_BACKEND_URL=${{ secrets.NEXT_PUBLIC_BACKEND_URL }}
NODE_ENV=${{ secrets.NODE_ENV }}
- name: Build and Push Backend
uses: docker/build-push-action@v6
@ -50,6 +51,7 @@ jobs:
tags: ${{ secrets.DOCKERHUB_USERNAME }}/werkzeugkiste-backend:latest
build-args: |
CORS_ALLOWED_ORIGIN=${{ secrets.CORS_ALLOWED_ORIGIN }}
NODE_ENV=${{ secrets.NODE_ENV }}
deploy-on-server:
needs: docker-build-push