parent
fe8381170a
commit
4f628e5aa0
@ -49,7 +49,7 @@ steps:
|
|||||||
|
|
||||||
update-values-frontend:
|
update-values-frontend:
|
||||||
name: Update frontend tag in values.yaml
|
name: Update frontend tag in values.yaml
|
||||||
image: alpine:3.19
|
image: harbor.dvirlabs.com/dockerhub/alpine:3.19
|
||||||
when:
|
when:
|
||||||
branch: [ master, develop ]
|
branch: [ master, develop ]
|
||||||
event: [ push ]
|
event: [ push ]
|
||||||
@ -76,7 +76,7 @@ steps:
|
|||||||
|
|
||||||
update-values-backend:
|
update-values-backend:
|
||||||
name: Update backend tag in values.yaml
|
name: Update backend tag in values.yaml
|
||||||
image: alpine:3.19
|
image: harbor.dvirlabs.com/dockerhub/alpine:3.19
|
||||||
when:
|
when:
|
||||||
branch: [ master, develop ]
|
branch: [ master, develop ]
|
||||||
event: [ push ]
|
event: [ push ]
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
# Use Python 3.11 slim image as base
|
# Use Python 3.11 slim image from Harbor
|
||||||
FROM python:3.11-slim
|
FROM harbor.dvirlabs.com/base-images:3.11-slim
|
||||||
|
|
||||||
# Set working directory
|
# Set working directory
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|||||||
@ -30,7 +30,7 @@ spec:
|
|||||||
{{- toYaml .Values.podSecurityContext | nindent 8 }}
|
{{- toYaml .Values.podSecurityContext | nindent 8 }}
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: wait-for-postgres
|
- name: wait-for-postgres
|
||||||
image: busybox:1.35
|
image: harbor.dvirlabs.com/dockerhub/busybox:1.35
|
||||||
command: ['sh', '-c', 'until nc -z {{ include "brand-master.fullname" . }}-db-headless {{ .Values.postgres.port | default 5432 }}; do echo waiting for postgres; sleep 2; done;']
|
command: ['sh', '-c', 'until nc -z {{ include "brand-master.fullname" . }}-db-headless {{ .Values.postgres.port | default 5432 }}; do echo waiting for postgres; sleep 2; done;']
|
||||||
containers:
|
containers:
|
||||||
- name: backend
|
- name: backend
|
||||||
|
|||||||
@ -22,7 +22,7 @@ spec:
|
|||||||
fsGroup: 999
|
fsGroup: 999
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: fix-permissions
|
- name: fix-permissions
|
||||||
image: busybox:latest
|
image: harbor.dvirlabs.com/dockerhub/busybox:latest
|
||||||
command:
|
command:
|
||||||
- sh
|
- sh
|
||||||
- -c
|
- -c
|
||||||
|
|||||||
@ -105,7 +105,7 @@ frontend:
|
|||||||
postgres:
|
postgres:
|
||||||
name: db
|
name: db
|
||||||
image:
|
image:
|
||||||
repository: postgres
|
repository: harbor.dvirlabs.com/dockerhub/postgres
|
||||||
tag: "16-alpine"
|
tag: "16-alpine"
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
# Build stage
|
# Build stage
|
||||||
FROM node:18-alpine AS build
|
FROM harbor.dvirlabs.com/base-images/node:18-alpine AS build
|
||||||
|
|
||||||
# Set working directory
|
# Set working directory
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
@ -21,7 +21,7 @@ ENV VITE_API_URL=${VITE_API_URL}
|
|||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
# Production stage
|
# Production stage
|
||||||
FROM nginx:alpine
|
FROM hharbor.dvirlabs.com/base-images/nginx:alpine
|
||||||
|
|
||||||
# Remove default nginx config
|
# Remove default nginx config
|
||||||
RUN rm /etc/nginx/conf.d/default.conf
|
RUN rm /etc/nginx/conf.d/default.conf
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user