Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
35 lines (28 sloc) 1.02 KB
# Language setting http://docs.shippable.com/ci/languages/python/
language: none
# use this to control what branches get built.
# http://docs.shippable.com/ci/advancedOptions/branches/
branches:
only:
- master
# using pre-defined build variables
# full list http://docs.shippable.com/ci/advancedOptions/environmentVariables/
env:
global:
- DOCKER_REPO=u16dotnet
- DOCKER_ACC=devopsrecipes # {account name}
build:
# http://docs.shippable.com/ci/shippableyml/#ci
ci:
- docker build -t $DOCKER_ACC/$DOCKER_REPO:$BRANCH.$BUILD_NUMBER .
# http://docs.shippable.com/ci/shippableyml/#post_ci
post_ci:
- docker push $DOCKER_ACC/$DOCKER_REPO:$BRANCH.$BUILD_NUMBER
# Integrations are used to connect external resources to CI
# http://docs.shippable.com/integrations/overview/
integrations:
# adding docker hub integration so that credentials are available to CI Job
# http://docs.shippable.com/integrations/imageRegistries/dockerHub/
hub:
- integrationName: drship_dockerhub
type: dockerRegistryLogin