Skip to content

Commit

Permalink
Merge pull request #2809 from alphagov/mount-tmp-directory-for-parse-…
Browse files Browse the repository at this point in the history
…failures-template

Mount `/tmp` directory into `parse-failures` template
  • Loading branch information
nimalank7 authored Dec 2, 2024
2 parents cd93b60 + 0b52ff6 commit b6b743e
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,17 @@ spec:
image: 172025368201.dkr.ecr.eu-west-1.amazonaws.com/github/alphagov/govuk/toolbox:latest
command:
- /bin/bash
volumeMounts:
- name: tmp
mountPath: /tmp
resources: {}
source: >
#!/usr/bin/env bash
echo {{"{{workflow.failures}}"}} | jq -r 'group_by(.templateName) | map({templateName: .[0].templateName, errorMessages: [.[].message | select(length > 0)] | unique}) | map("- \(.templateName): " + (["\(.errorMessages[])"] | join(",")) ) | .[]' > /tmp/message.txt
volumes:
- name: tmp
emptyDir: {}
- name: exit-handler
steps:
- - name: parse-failures
Expand Down

0 comments on commit b6b743e

Please sign in to comment.