Skip to content

Commit

Permalink
chore: support single arch tar build (#113)
Browse files Browse the repository at this point in the history
* chore: add single arch support

Signed-off-by: Denis Baryshev <[email protected]>

* chore: fix singlearch build

Signed-off-by: Denis Baryshev <[email protected]>

---------

Signed-off-by: Denis Baryshev <[email protected]>
  • Loading branch information
dennybaa authored Feb 2, 2025
1 parent 9b58fd7 commit 9fe466c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 0 additions & 1 deletion .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,3 @@ jobs:

- name: Build multi-arch images and binaries
run: make clean multiarch-tar

7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ multiarch-tar: images tar-all
multiarch-images: BUILDX_OUTPUT = type=image
multiarch-images: images

# Single arch builds don't have nested arch directory, thus set path as for multiarch
singlearch-tar: BUILDX_OUTPUT = type=local,dest=$(IMAGE_EXPORT_DIR)/linux_$(ARCH)
singlearch-tar: TAR_TARGET ?= tar
singlearch-tar: images
singlearch-tar:
make $(TAR_TARGET) PLATFORM="$(PLATFORM)" BUILDX_BUILDER="$(BUILDX_BUILDER)"

tar-all:
@{ \
set -e ;\
Expand Down

0 comments on commit 9fe466c

Please sign in to comment.