no volume mount
All checks were successful
ci / build (push) Successful in 1m19s

This commit is contained in:
miwr 2025-04-15 15:50:17 +02:00
parent 9671ea1410
commit 9d49f7c863
2 changed files with 10 additions and 10 deletions

View file

@ -5,7 +5,7 @@ RUN npm install --legacy-peer-deps # or yarn install
COPY . .
ARG LOCAL=false
RUN if [ "$LOCAL" = "true" ]; then \
cp src/environments/environment.local.ts src/environments/environment.ts; \
cp src/enviroments/environment.local.ts src/enviroments/environment.ts; \
fi
RUN npm run build --prod

View file

@ -18,14 +18,14 @@ spec:
image: forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/devfw-cicd/michals-silly-game-frontend:latest
ports:
- containerPort: 80
volumeMounts:
- name: config-volume
mountPath: /app/src/environments/environment.ts
subPath: environment.ts
volumes:
- name: config-volume
configMap:
name: silly-game-config
# volumeMounts:
# - name: config-volume
# mountPath: /app/src/environments/environment.ts
# subPath: environment.ts
# volumes:
# - name: config-volume
# configMap:
# name: silly-game-config
---
@ -36,7 +36,7 @@ metadata:
namespace: silly-game
spec:
selector:
app: silly-game
app: silly-game-frontend
ports:
- port: 80
targetPort: 80