kore-docker

Official Kore Dockerfiles
Commits | Files | Refs | README | git clone

commit 3ebc909464338e5288038a6c0116761fbee44af1
parent 333d482bc81497d40ebe0c4e8c8089baecdb3a8c
Author: Joris Vink <joris@coders.se>
Date:   Thu, 20 May 2021 09:54:39 +0200

add generic build script.

Diffstat:
build.sh | 24++++++++++++++++++++++++
1 file changed, 24 insertions(+), 0 deletions(-)

diff --git a/build.sh b/build.sh @@ -0,0 +1,24 @@ +#!/bin/sh + +if [ $# -ne 1 ]; then + echo "Usage: build.sh <dir>" + exit 1 +fi + +IMAGE=$1 + +set -e + +docker build -t kore/kore:$IMAGE-amd64 --platform linux/amd64 $IMAGE +docker push kore/kore:$IMAGE-amd64 + +docker build -t kore/kore:$IMAGE-arm64 $IMAGE +docker push kore/kore:$IMAGE-arm64 + +docker manifest rm kore/kore:$IMAGE + +docker manifest create kore/kore:$IMAGE \ + --amend kore/kore:$IMAGE-arm64 \ + --amend kore/kore:$IMAGE-amd64 + +docker manifest push kore/kore:$IMAGE