Skip to content

Commit

Permalink
release: updating helm charts with startup script
Browse files Browse the repository at this point in the history
build
publish
  • Loading branch information
mathias committed May 8, 2024
1 parent 0863aac commit 2a63106
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions helm/api/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,8 @@ spec:

resources:
{{- toYaml .Values.resources | nindent 12 }}

lifecycle:
postStart:
exec:
command: ["/bin/sh", "-c", "node ace migration:run --force"]
2 changes: 1 addition & 1 deletion helm/api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ replicaCount: 1

image:
repository: gitlab.polytech.umontpellier.fr:5050/beep/file/api/file-beep-api
pullPolicy: IfNotPresent
pullPolicy: Always
tag: 056b6d57
port: 80
configMapName: backend-config
Expand Down

0 comments on commit 2a63106

Please sign in to comment.