This commit is contained in:
parent
9671ea1410
commit
9d49f7c863
2 changed files with 10 additions and 10 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
Loading…
Reference in a new issue