Sha256: 329faf98235b16c2b7b6d516c4143de106a494c2601b8e6f8011511b2eda73f4

Contents?: true

Size: 1.05 KB

Versions: 3

Compression:

Stored size: 1.05 KB

Contents

kind: pipeline
name: default

trigger:
  event:
    - push

steps:
- name: Run rspec
  image: ruby:2.6
  commands:
    - bundle
    - bundle exec rspec
  when:
    branch:
      exclude:
        - master
        - "*stable"

- name: Bump and tag
  image: quay.io/openware/sdk-citools:2.4.5
  environment:
    BRANCH_NAME: ${DRONE_BRANCH}
    REPO_NAME: ${DRONE_REPO}
    GITHUB_API_KEY:
      from_secret: kite_bot_key
  commands:
    - BUNDLE_GEMFILE=/sdk/Gemfile bundle exec rake --rakefile=/sdk/Rakefile ci:prebuild
  when:
    branch:
      - master
      - "*stable"

image_pull_secrets:
  - dockerconfigjson

---
kind: pipeline
name: publish

trigger:
  event:
    - tag

steps:
- name: Publish to RubyGems
  image: ruby:2.6
  environment:
    RUBYGEMS_API_KEY:
      from_secret: rubygems_api_key
  commands:
    - mkdir ~/.gem
    - |
      echo "---\n:rubygems_api_key: $RUBYGEMS_API_KEY" > ~/.gem/credentials
    - chmod 0600 ~/.gem/credentials
    - bundle --jobs $(nproc)
    - bundle exec gem build kite.gemspec
    - bundle exec gem push kite-$DRONE_TAG.gem

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
kite-1.2.3 .drone.yml
kite-1.2.2 .drone.yml
kite-1.2.1 .drone.yml