Skip to content

Instantly share code, notes, and snippets.

@selcukusta
Created May 28, 2017 13:31
Show Gist options
  • Select an option

  • Save selcukusta/9f856e01fd7a2493ffa46a5fc23a6579 to your computer and use it in GitHub Desktop.

Select an option

Save selcukusta/9f856e01fd7a2493ffa46a5fc23a6579 to your computer and use it in GitHub Desktop.
language: none
build:
pre_ci_boot:
image_name: microsoft/dotnet
image_tag: 1.1-sdk
pull: true
options: "-e HOME=/root"
ci:
- sudo apt-get install -y xsltproc
- chmod g+w ./shippable/testresults
- chmod g+w ./shippable/xunit-result
- chmod a+x ./scripts/build.sh
- ./scripts/build.sh
- chmod a+x ./scripts/test.sh
- ./scripts/test.sh
post_ci:
- export REPO=selcukusta/netcore-shippable-ci-test-sample
- export TAG=`if [ "$BRANCH" == "master" ]; then echo "latest"; else echo $BRANCH ; fi`
- docker build -f Dockerfile -t $REPO:$TAG .
- docker tag $REPO:$TAG $REPO:netcoresample-build-$TRAVIS_BUILD_NUMBER
- docker push $REPO
integrations:
hub:
- integrationName: docker-hub-integration
type: docker
branches:
only:
- master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment