bitbucket-pipelines.yml edited online with Bitbucket

This commit is contained in:
Greg Gauthier 2021-02-25 17:48:36 +00:00
parent 2313dd4e9f
commit 9e230dc52e

View File

@ -22,7 +22,7 @@ pipelines:
name: Master Build and Test
script:
- IMAGE_NAME=$BITBUCKET_REPO_SLUG
- NAMESPACE=$DOCKERHUB_NAMESPACE
- NAMESPACE="gmgauthier"
- docker build . --file Dockerfile --tag ${NAMESPACE}/${IMAGE_NAME}
- docker save ${IMAGE_NAME} --output "${IMAGE_NAME}.tar"
services:
@ -37,7 +37,7 @@ pipelines:
script:
- echo ${DOCKERHUB_PASSWORD} | docker login --username "$DOCKERHUB_USERNAME" --password-stdin
- IMAGE_NAME=$BITBUCKET_REPO_SLUG
- NAMESPACE=$DOCKERHUB_NAMESPACE
- NAMESPACE="gmgauthier"
- docker push ${NAMESPACE}/${IMAGE_NAME}:latest
services:
- docker