add Docker hub publication to CI
This commit is contained in:
@@ -71,4 +71,7 @@ publish:
|
||||
- APP_VERSION=$(cat package.json | jq .version -r)
|
||||
- docker login $registry_host -u $registry_user -p $registry_pass
|
||||
- docker build -f ./Dockerfile -t $registry_host/$registry_img:$APP_VERSION .
|
||||
- docker push $registry_host/$registry_img:$APP_VERSION
|
||||
- docker push $registry_host/$registry_img:$APP_VERSION
|
||||
- docker logout $registry_host
|
||||
- docker login $docker_host -u $docker_user -p $docker_pass
|
||||
- docker push $docker_host/$docker_img:$APP_VERSION
|
||||
Reference in New Issue
Block a user