Makefile 300 B

12345678
  1. DOCKER_IMAGE_NAME=custom-jenkins
  2. DOCKER_REMOTE_IMAGE_NAME=reg.cestong.com.cn/cecf/${DOCKER_IMAGE_NAME}
  3. docker-build:
  4. docker build . -f Dockerfile -t ${DOCKER_IMAGE_NAME}
  5. docker-push: docker-build
  6. docker tag ${DOCKER_IMAGE_NAME} ${DOCKER_REMOTE_IMAGE_NAME}
  7. docker push ${DOCKER_REMOTE_IMAGE_NAME}