bitbucket-pipelines.yml edited online with Bitbucket
This commit is contained in:
parent
ed31fef0d8
commit
ca2e8896a9
@ -45,10 +45,8 @@ pipelines:
|
||||
script:
|
||||
- echo ${DOCKERHUB_PASSWORD} | docker login --username "$DOCKERHUB_USERNAME" --password-stdin
|
||||
- IMAGE_NAME=$BITBUCKET_REPO_SLUG
|
||||
- docker load --input "${IMAGE_NAME}.tar"
|
||||
- VERSION="prod-0.1.${BITBUCKET_BUILD_NUMBER}"
|
||||
- IMAGE=${DOCKERHUB_NAMESPACE}/${IMAGE_NAME}
|
||||
- docker tag "${IMAGE_NAME}" "${IMAGE}:${VERSION}"
|
||||
- docker tag "${IMAGE_NAME}" "${IMAGE}:latest"
|
||||
- docker push "${IMAGE}:${VERSION}"
|
||||
services:
|
||||
- docker
|
||||
|
Loading…
Reference in New Issue
Block a user