Skip to content

Instantly share code, notes, and snippets.

@xmsz
Last active November 29, 2021 07:11
Show Gist options
  • Save xmsz/c8e5bc14dabf956b92a1e609e8d5b8a6 to your computer and use it in GitHub Desktop.
Save xmsz/c8e5bc14dabf956b92a1e609e8d5b8a6 to your computer and use it in GitHub Desktop.
midway deploy + docker + git commit version + ccr
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