Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- image: node:8
- pipelines:
- default:
- - step:
- caches:
- - node
- script:
- - npm install
- - npm test
- - step:
- script:
- - '[[ $BITBUCKET_BRANCH = "master" ]] && DOCKER_TAG="latest" || DOCKER_TAG=$BITBUCKET_BRANCH'
- - docker login -u $DOCKER_LOGIN -p $DOCKER_PASSWORD
- - docker build -t $IMAGE_NAME:$DOCKER_TAG .
- - docker push $IMAGE_NAME:$DOCKER_TAG
- options:
- docker: true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement