dont compress OCI images, copy result to tar.gz

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-01-29 19:44:46 -05:00 committed by June
parent 621c85fd3b
commit d11b03feab

View file

@ -95,21 +95,26 @@ jobs:
- name: Build oci-image-x86_64-unknown-linux-gnu - name: Build oci-image-x86_64-unknown-linux-gnu
run: | run: |
./bin/nix-build-and-cache .#oci-image ./bin/nix-build-and-cache .#oci-image
cp result oci-image.tar.gz
- name: Upload artifact oci-image-x86_64-unknown-linux-gnu - name: Upload artifact oci-image-x86_64-unknown-linux-gnu
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: oci-image-x86_64-unknown-linux-gnu name: oci-image-x86_64-unknown-linux-gnu
path: result path: oci-image.tar.gz
if-no-files-found: error # don't compress again
compression-level: 0
- name: Build oci-image-aarch64-unknown-linux-musl - name: Build oci-image-aarch64-unknown-linux-musl
run: | run: |
./bin/nix-build-and-cache .#oci-image-aarch64-unknown-linux-musl ./bin/nix-build-and-cache .#oci-image-aarch64-unknown-linux-musl
cp result oci-image.tar.gz
- name: Upload artifact oci-image-aarch64-unknown-linux-musl - name: Upload artifact oci-image-aarch64-unknown-linux-musl
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: oci-image-aarch64-unknown-linux-musl name: oci-image-aarch64-unknown-linux-musl
path: result path: oci-image.tar.gz
if-no-files-found: error if-no-files-found: error
# don't compress again
compression-level: 0