Skip to content

Commit 194dc5f

Browse files
committed
fix container tarball extraction
1 parent 09c77a9 commit 194dc5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/docker.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ jobs:
2929
path: '${{ github.workflow_sha }}.tar.gz'
3030
name: 'container_tarball_${{ github.workflow_sha }}'
3131
- name: Load image
32-
run: docker load < ${{ github.workflow_sha }}.tar.gz
32+
run: gunzip -c ${{ github.workflow_sha }}.tar.gz | docker load
3333
- name: Spin up container
3434
run: docker run -d --name helloworld hello:latest
3535
- name: Await healthy or failed status
3636
run: |
3737
while(true); do
38-
STATUS=$(docker inspect --format='{{json .State.Health}}' helloworld | jq ".Status");
38+
STATUS=$(docker inspect --format='{{json .State.Health.Status}}' helloworld);
3939
if [[ "$STATUS" =~ "unhealthy" ]]; then
4040
echo "Container unhealthy, oh no!";
4141
exit 1;

0 commit comments

Comments
 (0)