我正在尝试使用两个标签构建图像 - 最新和版本号。
目前的实施——
docker build \
-t ${IMAGE_NAME}:latest \
-t ${IMAGE_NAME}:${VERSION} \
docker push "$IMAGE_NAME:latest"
docker push "$IMAGE_NAME:$VERSION"
当前输出 - 推送是指存储库 [docker.artifactory.in.com/ci-imageatest]
[+] Building 0.1s (17/17) FINISHED
=> [internal] load build definition from Dockerfile
=> exporting to image 0.0s
=> => exporting layers 0.0s
=> => writing image sha256:cf 0.0s
=> => naming to docker.artifactory.in.com/pysdk-ci-imageatest 0.0s
=> => naming to docker.artifactory.in.com/pysdk-ci-image:20220
与其创建最新标签,不如创建 repo ci-imageatest。
有人可以帮助我错过什么。