Last active
November 29, 2021 07:11
-
-
Save xmsz/c8e5bc14dabf956b92a1e609e8d5b8a6 to your computer and use it in GitHub Desktop.
midway deploy + docker + git commit version + ccr
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
VERSION=`git rev-parse --short HEAD` | |
DOCKER_NAME="act-20211123" | |
DOCKER_REPO="ccr.ccs.tencentyun.com/tcb-100005329577-jqcj/act-20211123-8gsdci257004ba48_main" | |
docker build -t ${DOCKER_NAME}-${VERSION} . | |
docker tag ${DOCKER_NAME}-${VERSION} ${DOCKER_REPO}:${VERSION} | |
docker push ${DOCKER_REPO}:${VERSION} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment