diff options
author | Jacob Vosmaer <jacob@gitlab.com> | 2017-01-14 03:32:25 +0300 |
---|---|---|
committer | Jacob Vosmaer <jacob@gitlab.com> | 2017-01-14 04:25:55 +0300 |
commit | c24cef1ff94dfbb3be9f7ff3e7d3504d042fa071 (patch) | |
tree | 1a36494a5bcdbc3008a4f1d7c3517a3ed485381f | |
parent | 0d5745308da263d7553bef7ad577e8d06d99f2d2 (diff) |
Add stages and publish jobvtest-5
-rw-r--r-- | .gitlab-ci.yml | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d373a31ae..638f90026 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,14 +1,23 @@ image: golang:1.7 +stages: + - test + - package + - publish + test: + stage: test script: - make - make test package: + stage: package + only: + - tags script: - apt-get update -qq - - apt-get install -qq -y rubygems ruby2.1 bundler + - apt-get install -qq -y rubygems bundler - GOOS=linux GOARCH=amd64 make clean package - dpkg -e *.deb - cat DEBIAN/control @@ -17,3 +26,17 @@ package: artifacts: paths: - ./*.deb + +publish: + stage: publish + only: + - tags + variables: + GIT_STRATEGY: none + script: + - apt-get update -qq + - apt-get install -y rubygems + - gem install package_cloud + - ls -lh *.deb + - shasum -a256 *.deb + - package_cloud push $PACKAGECLOUD_REPO *.deb --url=https://packages.gitlab.com |