NYTimes/drone-openapi

Name: drone-openapi

Owner: The New York Times

Description: A Drone plugin for publishing Open API service specifications

Created: 2017-11-20 20:57:27.0

Updated: 2018-03-26 16:08:45.0

Pushed: 2017-11-21 18:17:18.0

Homepage: null

Size: 132

Language: Go

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

drone-openapi

Publish Open API spec files from a Drone pipeline

This plugin accepts a team name along with a valid Open API spec file and it will post the given information to the given uploader_url.

Drone versions

This plugin supports Drone 0.4 and 0.6+ (0.5 is deprecated).

The examples below are for secrets in the 0.4 format, where the GCP Service Account json must be passed to the key parameter in .drone.yml, using the $$SECRET_NAME notation.

For Drone 0.6+, the plugin expects credentials in the OPENAPI_API_KEY environment variable. See the official documentation. Either:

Basic example config to publish the puzzles.yaml spec file under the games team:
notify:
  openapi:
    team: games
    spec: puzzles.yaml
    key: $$OPENAPI_KEY
    uploader_url: https://openapi-repo.example.com/uploader
    when:
      event: tag

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.