Add a docker_publish job

This commit is contained in:
dannyrb 2019-05-20 21:26:39 -04:00
parent c9630c6a8b
commit 851ec0be6a

View File

@ -72,6 +72,20 @@ jobs:
name: Publish using Semantic Release
command: npx semantic-release --debug --dry-run
docker_publish:
<<: *defaults
steps:
- attach_workspace:
at: ~/repo
- setup_remote_docker:
docker_layer_caching: true
- run:
name: Build and push Docker image
command: |
docker build -t ohif/$IMAGE_NAME:$TAG .
echo $DOCKER_PWD | docker login -u $DOCKER_LOGIN --password-stdin
docker push ohif/$IMAGE_NAME:$TAG
docs_publish:
<<: *defaults
steps: