We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 09c77a9 commit 194dc5fCopy full SHA for 194dc5f
.github/workflows/docker.yml
@@ -29,13 +29,13 @@ jobs:
29
path: '${{ github.workflow_sha }}.tar.gz'
30
name: 'container_tarball_${{ github.workflow_sha }}'
31
- name: Load image
32
- run: docker load < ${{ github.workflow_sha }}.tar.gz
+ run: gunzip -c ${{ github.workflow_sha }}.tar.gz | docker load
33
- name: Spin up container
34
run: docker run -d --name helloworld hello:latest
35
- name: Await healthy or failed status
36
run: |
37
while(true); do
38
- STATUS=$(docker inspect --format='{{json .State.Health}}' helloworld | jq ".Status");
+ STATUS=$(docker inspect --format='{{json .State.Health.Status}}' helloworld);
39
if [[ "$STATUS" =~ "unhealthy" ]]; then
40
echo "Container unhealthy, oh no!";
41
exit 1;
0 commit comments