diff --git a/kubernetes/apps/default/homelab/music-transcode/helmrelease.yaml b/kubernetes/apps/default/homelab/music-transcode/helmrelease.yaml index 020ef44ad..e02f6e76d 100644 --- a/kubernetes/apps/default/homelab/music-transcode/helmrelease.yaml +++ b/kubernetes/apps/default/homelab/music-transcode/helmrelease.yaml @@ -28,7 +28,7 @@ spec: app: image: repository: ghcr.io/auricom/freac - tag: 1.1.7@sha256:b1cf292cb70ddc89329afe0e09f8b88b275dba2883b49a9f2f1efc9e50d32347 + tag: 1.1.7@sha256:95e02a07b254507b0644f008cef596f85e8f7b13f207feec23995a96c77b12c5 command: - /bin/bash - -c @@ -38,10 +38,19 @@ spec: set -o errexit set -o nounset + if [[ -n "${HEALTHCHECKS_ID:-}" ]]; then + wget "https://hc-ping.com/${HEALTHCHECKS_ID}/start" -T 10 -t 5 -O /dev/null + fi + cd /app /app/transcode.sh -c /app/transcode.sh -r + + # Send completion ping to healthchecks + if [[ -n "${HEALTHCHECKS_ID:-}" ]]; then + wget "https://hc-ping.com/${HEALTHCHECKS_ID}" -T 10 -t 5 -O /dev/null + fi env: TRANSCODE_INPUT_DIR: /mnt/music/ TRANSCODE_OUTPUT_DIR: /mnt/music_transcoded/