Add build args to Docker build step in staging workflow
All checks were successful
Staging Build / build (push) Successful in 1m46s

This commit is contained in:
DanielS
2026-06-23 01:09:58 +02:00
parent 08418e22d3
commit 505629f798
2 changed files with 12 additions and 1 deletions

View File

@@ -33,7 +33,11 @@ jobs:
# KORREKTUR: Wir nutzen das gesetzte working-directory (shop) und bauen direkt dort
# KORREKTUR: Wir springen für Docker ganz nach außen und sagen ihm, wo der shop-Ordner liegt
- name: Build Docker image
run: docker build -t gitea.hephex.de/daniel/webshop:staging -f Dockerfile .
run: |
docker build \
--build-arg NEXT_PUBLIC_SUPABASE_URL="http://192.168.178.132:8000" \
--build-arg NEXT_PUBLIC_SUPABASE_ANON_KEY="${{ secrets.STAGING_SUPABASE_ANON_KEY }}" \
-t gitea.hephex.de/daniel/webshop:staging -f Dockerfile .
working-directory: .
# KORREKTUR: Auch der Push wird vom Hauptordner aus gestartet