Skip to content
Snippets Groups Projects

Resolve "optimize pipeline"

Merged Dominik Hebeler requested to merge 29-optimize-pipeline into master
1 file
+ 4
1
Compare changes
  • Side-by-side
  • Inline
@@ -70,7 +70,7 @@ spec:
- name: {{ .Chart.Name }}-nodejs
image: {{ template "imagename" . }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
command: ['sh', '-c', 'npm i --cache .npm --prefer-offline --no-audit --progress=false && npm run prod && cp -a ./node_modules/. && cp -a ./public/. /public/']
command: ['sh', '-c', 'cp -a /node_modules/. ./node_modules/ && npm i --cache .npm --prefer-offline --no-audit --progress=false && npm run prod && cp -a ./node_modules/. /node_modules/ && cp -a ./public/. /public/']
volumeMounts:
- mountPath: /html/node_modules
name: node-modules
@@ -79,6 +79,9 @@ spec:
- mountPath: /html/.npm
name: packages
subPath: .npm
- mountPath: /node_modules
name: packages
subPath: node_modules
- name: {{ .Chart.Name }}-composer
image: {{ template "imagename" . }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
Loading