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 . .
|
COPY . .
|
||||||
ARG LOCAL=false
|
ARG LOCAL=false
|
||||||
RUN if [ "$LOCAL" = "true" ]; then \
|
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
|
fi
|
||||||
RUN npm run build --prod
|
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
|
image: forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/devfw-cicd/michals-silly-game-frontend:latest
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 80
|
- containerPort: 80
|
||||||
volumeMounts:
|
# volumeMounts:
|
||||||
- name: config-volume
|
# - name: config-volume
|
||||||
mountPath: /app/src/environments/environment.ts
|
# mountPath: /app/src/environments/environment.ts
|
||||||
subPath: environment.ts
|
# subPath: environment.ts
|
||||||
volumes:
|
# volumes:
|
||||||
- name: config-volume
|
# - name: config-volume
|
||||||
configMap:
|
# configMap:
|
||||||
name: silly-game-config
|
# name: silly-game-config
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ metadata:
|
||||||
namespace: silly-game
|
namespace: silly-game
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
app: silly-game
|
app: silly-game-frontend
|
||||||
ports:
|
ports:
|
||||||
- port: 80
|
- port: 80
|
||||||
targetPort: 80
|
targetPort: 80
|
Loading…
Reference in a new issue