Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tag builds on CircleCI #5

Merged
merged 1 commit into from
Oct 4, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 24 additions & 23 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,28 +32,28 @@ jobs:
docker:
- image: ruby:2.4.4-alpine
steps:
- checkout
- run:
name: Install cURL
command: apk add --no-cache curl
- run:
name: Login to JFrog
command: |
mkdir -p ~/.gem
curl --user "$ARTIFACTORY_USER:$ARTIFACTORY_PASSWORD" https://fundingcircle.jfrog.io/fundingcircle/api/gems/rubygems/api/v1/api_key.yaml > ~/.gem/credentials
chmod 600 ~/.gem/credentials
- run:
name: Install Gem Versioner
command: gem install gem-versioner --version '~> 1.0' --no-document
- run:
name: Build gem
command: |
PRE_RELEASE="$CIRCLE_BRANCH" gem build vault.gemspec
- run:
name: Publish gem
command: |
package=$(ls -t1 vault-rails-*.gem | head -1)
gem push "$package" --host https://fundingcircle.jfrog.io/fundingcircle/api/gems/rubygems-pre-releases
- checkout
- run:
name: Install cURL
command: apk add --no-cache curl
- run:
name: Login to JFrog
command: |
mkdir -p ~/.gem
curl --user "$ARTIFACTORY_USER:$ARTIFACTORY_PASSWORD" https://fundingcircle.jfrog.io/fundingcircle/api/gems/rubygems/api/v1/api_key.yaml > ~/.gem/credentials
chmod 600 ~/.gem/credentials
- run:
name: Install Gem Versioner
command: gem install gem-versioner --version '~> 1.0' --no-document
- run:
name: Build gem
command: |
PRE_RELEASE="$CIRCLE_BRANCH" gem build vault.gemspec
- run:
name: Publish gem
command: |
package=$(ls -t1 vault-rails-*.gem | head -1)
gem push "$package" --host https://fundingcircle.jfrog.io/fundingcircle/api/gems/rubygems-pre-releases

publish-release:
docker:
Expand All @@ -62,7 +62,7 @@ jobs:
- checkout
- run:
name: Install cURL
command: apk add --no-cache curl
command: apk add --no-cache curl git
- run:
name: Login to JFrog
command: |
Expand Down Expand Up @@ -100,6 +100,7 @@ workflows:
ignore: /.*/
requires:
- tests

- publish-release:
context: org-global
filters:
Expand Down