Skip to content

Commit 1fd211a

Browse files
committed
Output json
1 parent 59fb437 commit 1fd211a

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

.github/workflows/docker-prod-test.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,3 @@ jobs:
2121
continue-on-error: true
2222
- name: Test
2323
run: ruby scripts/check_deployment.rb
24-
- name: Save JSON
25-
if: always()
26-
uses: actions/upload-artifact@v4
27-
with:
28-
name: out.json
29-
path: out.json

scripts/check_deployment.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@
44

55
if $?.success? && output.include?('Browse the catalogue')
66
docker_ps = `docker compose ps -a --format json | jq -s`
7+
puts docker_ps
78
if $?.success?
89
j = JSON.parse(docker_ps)
10+
puts JSON.pretty_generate(j)
911
unless j.any? { |c| c['ExitCode'] == 1 }
1012
exit 0
1113
end

0 commit comments

Comments
 (0)