diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..384c0eb --- /dev/null +++ b/build.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env bash + +REGISTRY='registry.cn-beijing.aliyuncs.com' +NAMESPACE='licsber' +NAME='myfakessh' +# 2023-01-22-1415-CST +TAG=`date +%F-%H%M-CST` + +IMAGE="$REGISTRY/$NAMESPACE/$NAME" +echo "$IMAGE:$TAG" +PLATFORM='linux/amd64,linux/arm64' +sudo docker buildx build \ + --platform $PLATFORM \ + -t "$IMAGE:$TAG" \ + -t "$IMAGE:latest" \ + --pull --push . diff --git a/docker-compose.yaml b/docker-compose.yaml index 67c3850..7c5f8be 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,7 +1,7 @@ services: MyFakeSSH: build: . - image: licsber/myfakessh:latest + image: registry.cn-beijing.aliyuncs.com/licsber/myfakessh:latest restart: always container_name: myfakessh command: /log