Add a docker_publish job
This commit is contained in:
parent
c9630c6a8b
commit
851ec0be6a
@ -72,6 +72,20 @@ jobs:
|
|||||||
name: Publish using Semantic Release
|
name: Publish using Semantic Release
|
||||||
command: npx semantic-release --debug --dry-run
|
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:
|
docs_publish:
|
||||||
<<: *defaults
|
<<: *defaults
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user