bitbucket-pipelines.yml edited online with Bitbucket
This commit is contained in:
parent
16b5c66625
commit
cfa8478c40
@ -1,6 +1,3 @@
|
||||
# Template docker-push
|
||||
# Prerequisites: $DOCKERHUB_USERNAME, $DOCKERHUB_PASSWORD setup as deployment variables
|
||||
|
||||
image: atlassian/default-image:2
|
||||
|
||||
pipelines:
|
||||
@ -10,23 +7,8 @@ pipelines:
|
||||
name: Parallel Build and Test
|
||||
script:
|
||||
- IMAGE_NAME=$BITBUCKET_REPO_SLUG
|
||||
- docker build . --file Dockerfile --tag "gmgauthier/${IMAGE_NAME}:latest"
|
||||
- docker build . --file Dockerfile --tag ${DOCKERHUB_USERNAME}/${IMAGE_NAME}:latest
|
||||
services:
|
||||
- docker
|
||||
caches:
|
||||
- docker
|
||||
|
||||
branches:
|
||||
master:
|
||||
- step:
|
||||
name: Master Build and Test
|
||||
script:
|
||||
- IMAGE_NAME=$BITBUCKET_REPO_SLUG
|
||||
- docker build . --file Dockerfile --tag "gmgauthier/${IMAGE_NAME}"
|
||||
- docker save ${IMAGE_NAME} --output "${IMAGE_NAME}.tar"
|
||||
services:
|
||||
- docker
|
||||
caches:
|
||||
- docker
|
||||
artifacts:
|
||||
- "*.tar"
|
||||
- docker
|
Loading…
Reference in New Issue
Block a user