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 +