mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Add commits to configuration to deploy :latest tag
The recommended way to update a kubernetes deployment to a new image is to change the image tag. However, our build server is configured to push every commit of the `master` branch to docker hub to the respective repository and tag `:latest`. So adding some configuration that can be changed seems to be a trick to re-deploy the `:latest` image. See here: https://stackoverflow.com/a/51835397
This commit is contained in:
parent
ad3a974076
commit
6fed4797ed
@ -18,6 +18,8 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- env:
|
- env:
|
||||||
|
- name: COMMIT
|
||||||
|
value: <BACKEND_COMMIT>
|
||||||
- name: MOCK
|
- name: MOCK
|
||||||
value: "false"
|
value: "false"
|
||||||
- name: CLIENT_URI
|
- name: CLIENT_URI
|
||||||
|
|||||||
@ -19,6 +19,8 @@
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- env:
|
- env:
|
||||||
|
- name: COMMIT
|
||||||
|
value: <BACKEND_COMMIT>
|
||||||
- name: SSH_USERNAME
|
- name: SSH_USERNAME
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
@ -64,7 +66,6 @@
|
|||||||
name: ssh-keys-directory
|
name: ssh-keys-directory
|
||||||
- mountPath: /mongo-export/
|
- mountPath: /mongo-export/
|
||||||
name: mongo-export
|
name: mongo-export
|
||||||
restartPolicy: Always
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: ssh-keys-directory
|
- name: ssh-keys-directory
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
@ -72,6 +73,7 @@
|
|||||||
- name: mongo-export
|
- name: mongo-export
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: mongo-export-claim
|
claimName: mongo-export-claim
|
||||||
|
restartPolicy: Always
|
||||||
terminationGracePeriodSeconds: 30
|
terminationGracePeriodSeconds: 30
|
||||||
status: {}
|
status: {}
|
||||||
---
|
---
|
||||||
|
|||||||
@ -18,6 +18,8 @@
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- env:
|
- env:
|
||||||
|
- name: COMMIT
|
||||||
|
value: <BACKEND_COMMIT>
|
||||||
- name: NEO4J_apoc_import_file_enabled
|
- name: NEO4J_apoc_import_file_enabled
|
||||||
value: "true"
|
value: "true"
|
||||||
- name: NEO4J_dbms_memory_pagecache_size
|
- name: NEO4J_dbms_memory_pagecache_size
|
||||||
@ -47,13 +49,12 @@
|
|||||||
- containerPort: 7687
|
- containerPort: 7687
|
||||||
- containerPort: 7474
|
- containerPort: 7474
|
||||||
resources: {}
|
resources: {}
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: Always
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /data/
|
- mountPath: /data/
|
||||||
name: neo4j-data
|
name: neo4j-data
|
||||||
- mountPath: /mongo-export/
|
- mountPath: /mongo-export/
|
||||||
name: mongo-export
|
name: mongo-export
|
||||||
restartPolicy: Always
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: mongo-export
|
- name: mongo-export
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
@ -61,6 +62,8 @@
|
|||||||
- name: neo4j-data
|
- name: neo4j-data
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: neo4j-data-claim
|
claimName: neo4j-data-claim
|
||||||
|
restartPolicy: Always
|
||||||
|
terminationGracePeriodSeconds: 30
|
||||||
status: {}
|
status: {}
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
|
|||||||
@ -18,6 +18,8 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- env:
|
- env:
|
||||||
|
- name: COMMIT
|
||||||
|
value: <WEBAPP_COMMIT>
|
||||||
- name: HOST
|
- name: HOST
|
||||||
value: 0.0.0.0
|
value: 0.0.0.0
|
||||||
- name: BACKEND_URL
|
- name: BACKEND_URL
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user