Skip to content

Commit 5a4e701

Browse files
committed
Fix failed initContainer commands
1 parent 2970b65 commit 5a4e701

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

.diploi/helm/app.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,8 @@ spec:
4242
- /bin/sh
4343
- -c
4444
- >
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
45+
dotnet build || exit 1;
46+
(dotnet tool restore && dotnet tool run libman restore) || echo "Libman restore failed, continuing...";
5147
workingDir: /app{{ .Values.folder }}
5248
volumeMounts:
5349
{{- if hasKey .Values.storage "code" }}

0 commit comments

Comments
 (0)