Skip to content
Snippets Groups Projects

Resolve "optimize pipeline"

Merged Dominik Hebeler requested to merge 29-optimize-pipeline into master
1 file
+ 8
2
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', '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/']
command: ['sh', '-c', 'cp -a /node_modules/. ./node_modules/ && npm i --cache .npm --prefer-offline --no-audit --progress=false && npm run prod && cp -au ./node_modules/. /node_modules/ && cp -a ./public/. /public/']
volumeMounts:
- mountPath: /html/node_modules
name: node-modules
@@ -85,10 +85,16 @@ spec:
- name: {{ .Chart.Name }}-composer
image: {{ template "imagename" . }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
command: ['sh', '-c', 'composer install --no-dev']
command: ['sh', '-c', 'export COMPOSER_HOME=.composer && cp -au /vendor/. ./vendor/ && composer install --no-dev && cp -a ./vendor/. /vendor/']
volumeMounts:
- mountPath: /html/vendor
name: vendor
- mountPath: /html/.composer
name: packages
subPath: .composer
- mountPath: /vendor
name: packages
subPath: vendor
containers:
- name: {{ .Chart.Name }}-phpfpm
image: {{ template "imagename" . }}
Loading