bitbucket-pipelines.yml edited online with Bitbucket

This commit is contained in:
Greg Gauthier 2021-02-25 17:42:30 +00:00
parent e2b88bcf9e
commit 2313dd4e9f

View File

@ -22,7 +22,8 @@ pipelines:
name: Master 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} - NAMESPACE=$DOCKERHUB_NAMESPACE
- docker build . --file Dockerfile --tag ${NAMESPACE}/${IMAGE_NAME}
- docker save ${IMAGE_NAME} --output "${IMAGE_NAME}.tar" - docker save ${IMAGE_NAME} --output "${IMAGE_NAME}.tar"
services: services:
- docker - docker
@ -36,6 +37,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