Commit 3a5e1217 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Added release data based label to all deployments to force update on image with same tag.

parent 5cdb6d0f
Pipeline #42858 passed with stages
in 20 minutes
......@@ -56,8 +56,8 @@ buildrawapi:
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN gitlab-registry.mpcdf.mpg.de
- docker build -t $RAWAPI_TEST_IMAGE -f rawapi.Dockerfile .
- docker push $RAWAPI_TEST_IMAGE
except:
- /^dev-.*$/
only:
- rawapi
linting:
......@@ -163,8 +163,8 @@ release_rawapi:
- docker pull $RAWAPI_TEST_IMAGE
- docker tag $RAWAPI_TEST_IMAGE $RAWAPI_RELEASE_IMAGE
- docker push $RAWAPI_RELEASE_IMAGE
except:
- /^dev-.*$/
only:
- rawapi
when: manual
deploy_rawapi:
......@@ -176,8 +176,8 @@ deploy_rawapi:
# runner container at /nomad/config/.env
- cp /nomad/config/.rawapi_env .env
- docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d
except:
- /^dev-.*$/
only:
- rawapi
when: manual
deploy:
......
......@@ -7,6 +7,7 @@ metadata:
helm.sh/chart: {{ include "nomad.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
date: {{ .Release.Time.Seconds }}
spec:
replicas: {{ .Values.api.replicas }}
selector:
......@@ -73,6 +74,7 @@ spec:
command: ["python", "-m", "gunicorn.app.wsgiapp", "-b 0.0.0.0:8000", "nomad.api:app"]
imagePullSecrets:
- name: {{ .Values.images.secret }}
imagePullPolicy: always
volumes:
- name: files-volume
hostPath:
......
......@@ -7,6 +7,7 @@ metadata:
helm.sh/chart: {{ include "nomad.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
date: {{ .Release.Time.Seconds }}
data:
nginx.conf: |
server {
......@@ -65,6 +66,7 @@ spec:
name: log
imagePullSecrets:
- name: {{ .Values.images.secret }}
imagePullPolicy: always
volumes:
- name: nginx-conf
configMap:
......
......@@ -7,6 +7,7 @@ metadata:
helm.sh/chart: {{ include "nomad.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
date: {{ .Release.Time.Seconds }}
spec:
replicas: {{ .Values.worker.replicas }}
selector:
......@@ -61,6 +62,7 @@ spec:
command: ["python", "-m", "celery", "worker", "-l", "info", "-A", "nomad.processing"]
imagePullSecrets:
- name: {{ .Values.images.secret }}
imagePullPolicy: always
volumes:
- name: files-volume
hostPath:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment