bitbucket-pipelines.yml edited online with Bitbucket
This commit is contained in:
parent
dc86f12d5f
commit
53afdf873c
@ -15,7 +15,7 @@ pipelines:
|
|||||||
name: Parallel 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 gmgauthier/${IMAGE_NAME}
|
||||||
services:
|
services:
|
||||||
- docker
|
- docker
|
||||||
caches:
|
caches:
|
||||||
@ -31,7 +31,7 @@ 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}
|
- docker build . --file Dockerfile --tag gmgauthier/${IMAGE_NAME}
|
||||||
- docker save ${IMAGE_NAME} --output "${IMAGE_NAME}.tar"
|
- docker save ${IMAGE_NAME} --output "${IMAGE_NAME}.tar"
|
||||||
services:
|
services:
|
||||||
- docker
|
- docker
|
||||||
@ -45,7 +45,6 @@ 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
|
||||||
- NAMESPACE=$DOCKERHUB_NAMESPACE
|
- docker push gmgauthier/${IMAGE_NAME}:latest
|
||||||
- docker push ${NAMESPACE}/${IMAGE_NAME}:latest
|
|
||||||
services:
|
services:
|
||||||
- docker
|
- docker
|
||||||
|
Loading…
Reference in New Issue
Block a user