- DOCKER_IMAGE_NAME=custom-jenkins
- DOCKER_REMOTE_IMAGE_NAME=reg.cestong.com.cn/cecf/${DOCKER_IMAGE_NAME}
- docker-build:
- docker build . -f Dockerfile -t ${DOCKER_IMAGE_NAME}
- docker-push: docker-build
- docker tag ${DOCKER_IMAGE_NAME} ${DOCKER_REMOTE_IMAGE_NAME}
- docker push ${DOCKER_REMOTE_IMAGE_NAME}
|