Skip to content

Commit

Permalink
fixup! fixup! wip: add build script using buildx
Browse files Browse the repository at this point in the history
  • Loading branch information
robertgzr committed Aug 28, 2020
1 parent 392e1d9 commit 066ec76
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions build-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ docker buildx create --name="${BUILDX_BUILDER}" \
--node="${BUILDX_BUILDER}-0" \
--use

# set cache
BUILDX_CACHE="type=registry,ref=docker.io/robertgzr/balena-engine:cicache-binaries"

VERSION=$(cat VERSION)
export VERSION

Expand All @@ -54,8 +51,6 @@ pack() {
BUILDTAGS="no_btrfs no_cri no_devmapper no_zfs exclude_disk_quota exclude_graphdriver_btrfs exclude_graphdriver_devicemapper exclude_graphdriver_zfs no_buildkit"
export BUILDTAGS
docker buildx bake --progress=plain \
--set=*.cache-from="${BUILDX_CACHE}" \
--set=*.cache-to="${BUILDX_CACHE}" \
--set=*.output=type=local,dest="${HERE}/bundles/"

pack linux/amd64
Expand All @@ -67,8 +62,6 @@ rm -rf "${HERE}/bundles/cross/"*
BUILDTAGS="no_btrfs no_cri no_devmapper no_zfs exclude_disk_quota exclude_graphdriver_btrfs exclude_graphdriver_devicemapper exclude_graphdriver_zfs"
export BUILDTAGS
docker buildx bake --progress=plain \
--set=*.cache-from="${BUILDX_CACHE}" \
--set=*.cache-to="${BUILDX_CACHE}" \
--set=*.output=type=local,dest="${HERE}/bundles/"

pack linux/amd64 buildkit
Expand Down

0 comments on commit 066ec76

Please sign in to comment.