GithubHelp home page GithubHelp logo

actions-marketplace-validations / ggui_graviteeio-apim-api-definition-action Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 10 KB

License: Apache License 2.0

Dockerfile 5.80% Shell 30.62% Jinja 63.58%

ggui_graviteeio-apim-api-definition-action's Introduction

Gravitee.io - API Management - Drive api definition settings action

This action allows to perform GitOps approach with Gravitee's configuration. The api definition configuration is defined in template and value files. This action allows to automate the modifications and deployment of API definition configuration in Gravitee's API Management tool. This action is based on graviteeio-cli

Inputs

Argument Description Default Values
command (Required) api definition command diff diff, apply, verion
api (Required) api id
gio_workspaces folder path containing template and values files for api definition gio
options Option parameters for command

Commands

Command Description
verion Display Gravitee CLI version.
diff Compare api definition configuration in repository with api defintion configuration on the remote server.
apply Apply api definition configuration in repository on the remote server.

Options

Command: diff

-s, --set TEXT      Overload the value(s) of value file eg: `--set
                      proxy.groups[0].name=mynewtest`

Command: apply

-s, --set TEXT      Overload the value(s) of value file eg: `--set
                      proxy.groups[0].name=mynewtest`
--with-deploy       Deploy api after applying

Environment variables

variable Description
GIO_TOKEN Personnal acces token Api Management gravitee
GIO_APIM_URL Api Management URL.
GIO_APIM_ORG Organisation. Add GIO_APIM_ORG: DEFAULT only higher version 3.x.
GIO_APIM_ENV Environment. Add GIO_APIM_ENV: DEFAULT only higher version 3.x.

Example usage

For api management below verion 3.x, remove environment variable GIO_APIM_ORG and GIO_APIM_ENV

on: [push]

jobs:
  gio_job:
    runs-on: ubuntu-latest
    name: job gio diff
    steps:
      - uses: actions/checkout@v2
        name: "checkout"
      - name: gio apim apis diff
        id: gio_apim_apis_diff
        uses: GGui/[email protected]
        env:
          GIO_TOKEN: ${{ secrets.GIO_TOKEN }}
          GIO_APIM_URL: ${{ secrets.GIO_APIM_URL }}
          GIO_APIM_ORG: DEFAULT
          GIO_APIM_ENV: DEFAULT
        with:
            command: "diff"
            api: ${{ secrets.GIO_API_ID }}
            gio_workspaces: "gio"
      - name: gio apim apis apply
        id: gio_apim_apis_apply
        uses: GGui/[email protected]
        env:
          GIO_TOKEN: ${{ secrets.GIO_TOKEN }}
          GIO_APIM_URL: ${{ secrets.GIO_APIM_URL }}
          GIO_APIM_ORG: DEFAULT
          GIO_APIM_ENV: DEFAULT
        with:
            command: "apply"
            api: ${{ secrets.GIO_API_ID }}
            gio_workspaces: "gio"

ggui_graviteeio-apim-api-definition-action's People

Contributors

ggui avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.