Skip to content

Commit a7cd2c4

Browse files
committed
create image as tarred gzip
1 parent b02e48f commit a7cd2c4

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.github/workflows/bitcoin-tests.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
id: git_checkout
2929
uses: actions/checkout@v3
3030

31-
# Could run a `docker system prune here to clean up a little extra space, ~4-5GB
31+
# Could run a `docker system prune --force`` here to clean up a little extra space, ~4-5GB
3232

3333
- name: Build bitcoin integration testing image
3434
id: build_docker_image
@@ -47,14 +47,15 @@ jobs:
4747

4848
- name: Export docker image as tarball
4949
id: export_docker_image
50-
run: docker save -o integration-image.tar stacks-blockchain:integrations
50+
# run: docker save -o integration-image.tar stacks-blockchain:integrations
51+
run: docker save stacks-blockchain:integrations | gzip > integration-image.tar.gz
5152

5253
- name: Upload built docker image
5354
id: upload_docker_image
5455
uses: actions/upload-artifact@v3
5556
with:
56-
name: integration-image.tar
57-
path: integration-image.tar
57+
name: integration-image.tar.gz
58+
path: integration-image.tar.gz
5859

5960
# Run integration tests using sampled genesis block
6061
sampled-genesis:
@@ -141,10 +142,10 @@ jobs:
141142
id: download_docker_image
142143
uses: actions/download-artifact@v3
143144
with:
144-
name: integration-image.tar
145+
name: integration-image.tar.gz
145146
- name: Load docker image
146147
id: load_docker_image
147-
run: docker load -i integration-image.tar && rm integration-image.tar
148+
run: docker load -i integration-image.tar.gz && rm integration-image.tar.gz
148149
- name: All integration tests with sampled genesis
149150
id: bitcoin_integration_tests
150151
timeout-minutes: 30
@@ -180,10 +181,10 @@ jobs:
180181
id: download_docker_image
181182
uses: actions/download-artifact@v3
182183
with:
183-
name: integration-image.tar
184+
name: integration-image.tar.gz
184185
- name: Load docker image
185186
id: load_docker_image
186-
run: docker load -i integration-image.tar && rm integration-image.tar
187+
run: docker load -i integration-image.tar.gz && rm integration-image.tar.gz
187188
- name: Atlas integration tests
188189
id: atlas_integration_tests
189190
timeout-minutes: 40

0 commit comments

Comments
 (0)