Skip to content

Commit e0e484d

Browse files
Removed GPKG download step and saved the docker image in form of tar
1 parent dd03162 commit e0e484d

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

.github/workflows/build_test_fp_arm.yaml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,32 +29,34 @@ jobs:
2929
run: |
3030
cd docker
3131
ARCH=aarch64 TAG=latest-arm64 \
32-
docker compose -f docker-compose.yml build --no-cache forcingprocessor-deps
32+
docker compose -f docker-compose.yml build forcingprocessor-deps
3333
3434
- name: Build forcingprocessor
3535
run: |
3636
cd docker
3737
ARCH=aarch64 TAG=latest-arm64 \
38-
docker compose -f docker-compose.yml build --no-cache forcingprocessor
38+
docker compose -f docker-compose.yml build forcingprocessor
3939
4040
- name: List built images
4141
run: docker images | grep forcingprocessor
4242

43+
4344
- name: Save Docker images
4445
run: |
45-
docker save awiciroh/forcingprocessor:latest-arm64 -o /tmp/forcingprocessor-arm64.tar
46+
docker save awiciroh/forcingprocessor:latest-arm64 | gzip > /tmp/forcingprocessor-arm64.tar.gz
4647
4748
- name: Upload forcingprocessor image
4849
uses: actions/upload-artifact@v4
4950
with:
5051
name: forcingprocessor-arm64
51-
path: /tmp/forcingprocessor-arm64.tar
52+
path: /tmp/forcingprocessor-arm64.tar.gz
5253
retention-days: 1
53-
compression-level: 0
54+
compression-level: 0
5455

5556
- name: Clean up local tar files
5657
if: always()
57-
run: rm -f /tmp/forcingprocessor-arm64.tar
58+
run: rm -f /tmp/forcingprocessor-arm64.tar.gz
59+
5860

5961
test-arm64:
6062
needs: build-arm64
@@ -137,9 +139,9 @@ jobs:
137139
set -euo pipefail
138140
ls -lh /tmp/artifacts
139141
140-
# Retry docker load up to 3 times
142+
# Load gzipped image
141143
for i in 1 2 3; do
142-
if docker load -i /tmp/artifacts/forcingprocessor-arm64.tar; then
144+
if gunzip -c /tmp/artifacts/forcingprocessor-arm64.tar.gz | docker load; then
143145
echo "Successfully loaded image on attempt $i"
144146
docker images | grep forcingprocessor
145147
break
@@ -154,7 +156,7 @@ jobs:
154156
fi
155157
done
156158
157-
159+
158160
- name: Run ${{ matrix.test-suite.name }}
159161
run: |
160162
docker run --rm \
@@ -166,6 +168,11 @@ jobs:
166168
awiciroh/${{ matrix.test-suite.image }}:latest-arm64 \
167169
${{ matrix.test-suite.command }}
168170
171+
# - name: Clean up Docker image
172+
# if: always()
173+
# run: |
174+
# docker rmi awiciroh/${{ matrix.test-suite.image }}:latest-arm64 || true
175+
# docker system prune -f
169176

170177
cleanup-artifacts:
171178
needs: test-arm64

0 commit comments

Comments
 (0)