-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved from manifest to buildx (premises)
- Loading branch information
Showing
5 changed files
with
12 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,9 @@ | ||
VERSION ?= v0.2.0 | ||
VERSION ?= v0.2.1 | ||
CACHE ?= --no-cache=1 | ||
FULLVERSION ?= ${VERSION} | ||
archs ?= amd64 arm64v8 arm32v6 | ||
|
||
.PHONY: all build publish latest | ||
all: build publish latest | ||
qemu-arm-static: | ||
cp /usr/bin/qemu-arm-static . | ||
qemu-aarch64-static: | ||
cp /usr/bin/qemu-aarch64-static . | ||
build: qemu-arm-static qemu-aarch64-static | ||
$(foreach arch,$(archs), \ | ||
cat Dockerfile | sed "s/FROM docker/FROM ${arch}\/docker/g" > .Dockerfile; \ | ||
docker build -t femtopixel/builder:${VERSION}-$(arch) -f .Dockerfile ${CACHE} .;\ | ||
) | ||
.PHONY: all build publish | ||
all: build publish | ||
build: | ||
docker buildx build --platform linux/arm/v7,linux/arm64/v8,linux/amd64 ${PUSH} --tag femtopixel/builder --tag femtopixel/builder:${VERSION} ${CACHE} . | ||
publish: | ||
docker push femtopixel/builder -a | ||
cat manifest.yml | sed "s/\$$VERSION/${VERSION}/g" > manifest.yaml | ||
cat manifest.yaml | sed "s/\$$FULLVERSION/${FULLVERSION}/g" > manifest2.yaml | ||
mv manifest2.yaml manifest.yaml | ||
manifest-tool push from-spec manifest.yaml | ||
latest: build | ||
FULLVERSION=latest VERSION=${VERSION} make publish | ||
PUSH=--push CACHE= make build |
This file was deleted.
Oops, something went wrong.