Skip to content

Commit 2970b65

Browse files
committed
Update the init container command
1 parent bc4c84b commit 2970b65

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

.diploi/helm/app.yaml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,16 @@ spec:
3838
- name: install-dependencies
3939
image: {{ .Values.images.app }}
4040
imagePullPolicy: Always
41-
command: ["/bin/sh", "-c", "dotnet build && dotnet tool restore && dotnet tool run libman restore"]
41+
command:
42+
- /bin/sh
43+
- -c
44+
- >
45+
set -euo pipefail;
46+
dotnet build;
47+
dotnet tool restore;
48+
if ! dotnet tool run libman restore; then
49+
echo "libman restore failed but continuing pod startup" >&2;
50+
fi
4251
workingDir: /app{{ .Values.folder }}
4352
volumeMounts:
4453
{{- if hasKey .Values.storage "code" }}
@@ -101,4 +110,4 @@ spec:
101110
- ReadWriteOnce
102111
resources:
103112
requests:
104-
storage: 1Gi
113+
storage: 1Gi

0 commit comments

Comments
 (0)