From 8caa9b0c3c906d3482bcf1b4a1c818e711288298 Mon Sep 17 00:00:00 2001 From: Sven Walter Date: Fri, 22 Sep 2017 11:29:34 +0200 Subject: [PATCH] enable travis --- .jenkins.yml | 3 --- .travis.yml | 30 ++++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 3 deletions(-) delete mode 100644 .jenkins.yml create mode 100644 .travis.yml diff --git a/.jenkins.yml b/.jenkins.yml deleted file mode 100644 index 70b3520..0000000 --- a/.jenkins.yml +++ /dev/null @@ -1,3 +0,0 @@ -docker: - mailerRecipients: - - 'dl-scb-tech-platform@rebuy.com' diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..12d7b88 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,30 @@ +sudo: required + +language: go + +services: + - docker + +script: +- docker build -t kubernetes-deployment --no-cache . +- > + docker run + --name kubernetes-deployment + --entrypoint "sh" + -e CGO_ENABLED=0 + --workdir "/go/src/github.com/rebuy-de/kubernetes-deployment" + kubernetes-deployment + -euxc "make xc && mkdir releases && mv kubernetes-deployment-* releases" +- docker cp -L kubernetes-deployment:/go/src/github.com/rebuy-de/kubernetes-deployment/releases ./releases +- ls -l * + +deploy: + provider: releases + api_key: $GITHUB_TOKEN + file_glob: true + file: releases/* + skip_cleanup: true + on: + repo: rebuy-de/kubernetes-deployment + tags: true +