Skip to content

Commit

Permalink
Change to OCI on build export tarball
Browse files Browse the repository at this point in the history
  • Loading branch information
prodrigestivill committed Apr 17, 2024
1 parent c05d7bf commit 2c9d8e7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: docker-${{ matrix.arch }}
path: docker-images/radare2-docker-*.tar
path: docker-images/radare2-docker-*.tar*
if-no-files-found: error
compression-level: 9
compression-level: 0
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,15 @@ docker-buildx:
--tag "$(DOCKER_IMAGE)" \
docker

# Build crossplatform docker locally for testing
# Build crossplatform docker as tarball
docker-buildx-tarball:
mkdir -p docker-images
docker buildx build $(DOCKER_BUILD_ARGS) $(DOCKER_LABELS) \
docker buildx build $(DOCKER_BUILD_ARGS) $(DOCKER_LABELS) $(DOCKER_ANNOTATIONS_MANIFEST) $(DOCKER_ANNOTATIONS_INDEX) \
--target docker \
--platform "$(TARGETPLATFORM)" \
--output "type=docker,dest=docker-images/radare2-docker-$(SNAP_ARCH).tar" \
--attest type=sbom,generator=docker/buildkit-syft-scanner \
--attest type=provenance \
--output "type=oci,compression=zstd,dest=docker-images/radare2-docker-$(SNAP_ARCH).tar.zstd" \
--tag "$(DOCKER_IMAGE)" \
docker

Expand Down

0 comments on commit 2c9d8e7

Please sign in to comment.