Skip to content
This repository has been archived by the owner on May 18, 2021. It is now read-only.

Commit

Permalink
pipeline: Use circle contexts for github and packagecloud publishing (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
nickatsegment authored Jun 12, 2019
1 parent 7ca339d commit 8a6aadb
Showing 1 changed file with 25 additions and 4 deletions.
29 changes: 25 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
root: .
paths: ['dist/*']

publish-linux:
publish-packagecloud:
docker:
- image: circleci/golang:1.10
working_directory: /go/src/github.com/segmentio/aws-okta
Expand All @@ -56,10 +56,19 @@ jobs:
# fixes https://askubuntu.com/questions/872399/error-failed-to-build-gem-native-extension-when-trying-to-download-rubocop
sudo gem install rake
sudo make -f Makefile.tools package_cloud
publish-github-linux:
docker:
- image: circleci/golang:1.10
working_directory: /go/src/github.com/segmentio/aws-okta
steps:
- checkout
- attach_workspace: { at: . }
- run:
name: Release
name: Install tools
command: |
make -f Makefile.release publish-linux
make -f Makefile.tools github-release
make -f Makefile.release publish-github-linux
workflows:
version: 2
Expand All @@ -74,7 +83,19 @@ workflows:
filters:
tags:
only: /.*/
- publish-linux:
- publish-packagecloud:
context: packagecloud
requires:
- dist-linux
filters:
# never publish from a branch event
branches:
ignore: /.*/
# release only on tag push events like vX[.Y.Z...][-whatever]
tags:
only: /v[0-9]+(\.[0-9]+)*(-[a-zA-Z0-9-]+)?/
- publish-github-linux:
context: github-segmentcircle-oss-release
requires:
- dist-linux
filters:
Expand Down

0 comments on commit 8a6aadb

Please sign in to comment.