-
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
43 additions
and
135 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,44 +1,10 @@ | ||
VERSION ?= 2.1.2 | ||
VERSION ?= 2.1.3 | ||
CACHE ?= --no-cache=1 | ||
FULLVERSION ?= ${VERSION} | ||
archs ?= amd64 arm32v6 armhf arm64v8 | ||
|
||
.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), \ | ||
FILE=Dockerfile; \ | ||
if [ $(arch) = amd64 ]; \ | ||
then archi=$(arch); \ | ||
image=bellsoft\\/liberica-openjdk-alpine:10.0.2-x86_64; \ | ||
elif [ $(arch) = arm32v6 ]; \ | ||
then archi=armel; \ | ||
image=balenalib\\/raspberry-pi; \ | ||
FILE=debian.Dockerfile; \ | ||
elif [ $(arch) = armhf ]; \ | ||
then archi=$(arch); \ | ||
image=bellsoft\\/liberica-openjdk-alpine:10.0.2-armv7l; \ | ||
else \ | ||
archi=arm64; \ | ||
image=bellsoft\\/liberica-openjdk-debian:11.0.20-aarch64; \ | ||
FILE=debian.Dockerfile; \ | ||
fi; \ | ||
cat $$FILE | sed "s/FROM openjdk:jre-alpine/FROM $$image/g" > .Dockerfile; \ | ||
docker build -t ghcr.io/jaymoulin/jdownloader:${VERSION}-$(arch) -t jaymoulin/jdownloader:${VERSION}-$(arch) -f .Dockerfile --build-arg ARCH=$${archi} ${CACHE} --build-arg VERSION=${VERSION} .;\ | ||
) | ||
.PHONY: all build publish | ||
all: build publish | ||
build: | ||
docker buildx build --platform linux/arm/v6,linux/arm/v7,linux/arm64/v8,linux/amd64 ${PUSH} --build-arg VERSION=${VERSION} --tag jaymoulin/jdownloader --tag jaymoulin/jdownloader:${VERSION} ${CACHE} . | ||
publish: | ||
docker push jaymoulin/jdownloader -a | ||
docker push ghcr.io/jaymoulin/jdownloader -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 | ||
cat manifest.yaml | sed "s/jaymoulin/ghcr.io\/jaymoulin/g" > manifest2.yaml | ||
mv manifest2.yaml manifest.yaml | ||
manifest-tool push from-spec manifest.yaml | ||
latest: | ||
FULLVERSION=latest VERSION=${VERSION} make publish | ||
PUSH=--push CACHE= make build | ||
|
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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.