Modified docker push to use buildkit
Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>pull/11/head
parent
20e1df177c
commit
1fbc2b7521
|
@ -1,9 +1,16 @@
|
|||
#!/bin/sh
|
||||
|
||||
VERSION=0.1.2
|
||||
VERSION=$(git branch | grep "*" | awk '{ print $2 }')
|
||||
LOCAL_IMAGE="athome"
|
||||
REGISTRY="mos4"
|
||||
REMOTE_IMAGE="athome"
|
||||
DOCKERFILE="./Dockerfile"
|
||||
|
||||
docker build -t $LOCAL_IMAGE .
|
||||
docker tag $LOCAL_IMAGE:latest mos4/$REMOTE_IMAGE:$VERSION
|
||||
docker push mos4/$REMOTE_IMAGE:$VERSION
|
||||
echo "DOCKERFILE: $DOCKERFILE"
|
||||
echo "VERSION: $VERSION"
|
||||
echo "LOCAL_IMAGE: $LOCAL_IMAGE"
|
||||
echo "REGISTRY: $REGISTRY"
|
||||
echo "REMOTE_IMAGE: $REMOTE_IMAGE"
|
||||
|
||||
docker buildx build --platform linux/amd64,linux/arm64 -f $DOCKERFILE -t \
|
||||
$REGISTRY/$REMOTE_IMAGE:$TAG . --push
|
||||
|
|
Loading…
Reference in New Issue