bitbucket-pipelines.yml edited online with Bitbucket

This commit is contained in:
Greg Gauthier 2021-02-25 17:20:47 +00:00
parent 56b7a96961
commit dc86f12d5f

View File

@ -12,7 +12,7 @@ pipelines:
default:
- parallel:
- step:
name: Build and Test
name: Parallel Build and Test
script:
- IMAGE_NAME=$BITBUCKET_REPO_SLUG
- docker build . --file Dockerfile --tag ${DOCKERHUB_NAMESPACE}/${IMAGE_NAME}
@ -28,7 +28,7 @@ pipelines:
branches:
master:
- step:
name: Build and Test
name: Master Build and Test
script:
- IMAGE_NAME=$BITBUCKET_REPO_SLUG
- docker build . --file Dockerfile --tag ${DOCKERHUB_NAMESPACE}/${IMAGE_NAME}
@ -45,6 +45,7 @@ pipelines:
script:
- echo ${DOCKERHUB_PASSWORD} | docker login --username "$DOCKERHUB_USERNAME" --password-stdin
- IMAGE_NAME=$BITBUCKET_REPO_SLUG
- docker push $DOCKERHUB_NAMESPACE/${IMAGE_NAME}:latest
- NAMESPACE=$DOCKERHUB_NAMESPACE
- docker push ${NAMESPACE}/${IMAGE_NAME}:latest
services:
- docker