Skip to content

Commit

Permalink
修改压缩方式
Browse files Browse the repository at this point in the history
  • Loading branch information
wukongdaily authored Dec 10, 2024
1 parent bb29a1c commit 188b8c6
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/amd64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ jobs:
image_name="${image//\//_}"
image_name="${image_name//:/_}"
docker save "${image}" -o "${image_name}-amd64.tar"
tar -czf "${image_name}.tar.gz" "${image_name}-amd64.tar"; rm "${image_name}-amd64.tar"
gzip -c "${image_name}-amd64.tar" > "${image_name}-amd64.tar.gz"
rm "${image_name}-amd64.tar"
done
- name: Upload artifact
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/arm32-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@ jobs:
images="${{ github.event.inputs.docker_images }}"
IFS=',' read -r -a image_array <<< "$images"
for image in "${image_array[@]}"; do
docker pull "${image}" --platform "linux/arm64"
docker pull "${image}" --platform "linux/arm/v7"
image_name="${image//\//_}"
image_name="${image_name//:/_}"
docker save "${image}" -o "${image_name}-amd64.tar"
tar -czf "${image_name}.tar.gz" "${image_name}-amd64.tar"; rm "${image_name}-amd64.tar"
docker save "${image}" -o "${image_name}-amd32.tar"
gzip -c "${image_name}-amd32.tar" > "${image_name}-amd32.tar.gz"
rm "${image_name}-amd32.tar"
done
- name: List generated files (debug step)
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/arm32.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ jobs:
image_name="${image//\//_}"
image_name="${image_name//:/_}"
docker save "${image}" -o "${image_name}-arm32.tar"
tar -czf "${image_name}.tar.gz" "${image_name}-arm32.tar"; rm "${image_name}-arm32.tar"
gzip -c "${image_name}-arm32.tar" > "${image_name}-arm32.tar.gz"
rm "${image_name}-arm32.tar"
done
- name: Upload artifact
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/arm64-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ jobs:
docker pull "${image}" --platform "linux/arm64"
image_name="${image//\//_}"
image_name="${image_name//:/_}"
docker save "${image}" -o "${image_name}-amd64.tar"
tar -czf "${image_name}.tar.gz" "${image_name}-amd64.tar"; rm "${image_name}-amd64.tar"
docker save "${image}" -o "${image_name}-arm64.tar"
gzip -c "${image_name}-arm64.tar" > "${image_name}-arm64.tar.gz"
rm "${image_name}-arm64.tar"
done
- name: List generated files (debug step)
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ jobs:
image_name="${image//\//_}"
image_name="${image_name//:/_}"
docker save "${image}" -o "${image_name}-arm64.tar"
tar -czf "${image_name}.tar.gz" "${image_name}-arm64.tar"; rm "${image_name}-arm64.tar"
gzip -c "${image_name}-arm64.tar" > "${image_name}-arm64.tar.gz"
rm "${image_name}-arm64.tar"
done
- name: Upload artifact
Expand Down

0 comments on commit 188b8c6

Please # to comment.