- DOCKER_IMAGE_NAME=hx-admin-web
- DOCKER_REMOTE_IMAGE_NAME=registry.cestong.com:8150/zhixueyun/${DOCKER_IMAGE_NAME}
- docker-build:
- docker build . -t ${DOCKER_IMAGE_NAME}
- docker-push: docker-build
- docker tag ${DOCKER_IMAGE_NAME} ${DOCKER_REMOTE_IMAGE_NAME}
- docker push ${DOCKER_REMOTE_IMAGE_NAME}
- deploy-test: docker-push
- ssh cest-2 'cd hx-admin-web && docker-compose pull && docker-compose up -d'
|