bitbucket-pipelines.yml edited online with Bitbucket
This commit is contained in:
parent
56b7a96961
commit
dc86f12d5f
@ -12,7 +12,7 @@ pipelines:
|
|||||||
default:
|
default:
|
||||||
- parallel:
|
- parallel:
|
||||||
- step:
|
- step:
|
||||||
name: Build and Test
|
name: Parallel Build and Test
|
||||||
script:
|
script:
|
||||||
- IMAGE_NAME=$BITBUCKET_REPO_SLUG
|
- IMAGE_NAME=$BITBUCKET_REPO_SLUG
|
||||||
- docker build . --file Dockerfile --tag ${DOCKERHUB_NAMESPACE}/${IMAGE_NAME}
|
- docker build . --file Dockerfile --tag ${DOCKERHUB_NAMESPACE}/${IMAGE_NAME}
|
||||||
@ -28,7 +28,7 @@ pipelines:
|
|||||||
branches:
|
branches:
|
||||||
master:
|
master:
|
||||||
- step:
|
- step:
|
||||||
name: Build and Test
|
name: Master Build and Test
|
||||||
script:
|
script:
|
||||||
- IMAGE_NAME=$BITBUCKET_REPO_SLUG
|
- IMAGE_NAME=$BITBUCKET_REPO_SLUG
|
||||||
- docker build . --file Dockerfile --tag ${DOCKERHUB_NAMESPACE}/${IMAGE_NAME}
|
- docker build . --file Dockerfile --tag ${DOCKERHUB_NAMESPACE}/${IMAGE_NAME}
|
||||||
@ -45,6 +45,7 @@ pipelines:
|
|||||||
script:
|
script:
|
||||||
- echo ${DOCKERHUB_PASSWORD} | docker login --username "$DOCKERHUB_USERNAME" --password-stdin
|
- echo ${DOCKERHUB_PASSWORD} | docker login --username "$DOCKERHUB_USERNAME" --password-stdin
|
||||||
- IMAGE_NAME=$BITBUCKET_REPO_SLUG
|
- IMAGE_NAME=$BITBUCKET_REPO_SLUG
|
||||||
- docker push $DOCKERHUB_NAMESPACE/${IMAGE_NAME}:latest
|
- NAMESPACE=$DOCKERHUB_NAMESPACE
|
||||||
|
- docker push ${NAMESPACE}/${IMAGE_NAME}:latest
|
||||||
services:
|
services:
|
||||||
- docker
|
- docker
|
||||||
|
Loading…
Reference in New Issue
Block a user