-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
30 lines (30 loc) · 1.1 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: 'Microcks Import GitHub action'
author: 'Microcks.io'
description: 'Import API specifications into Microcks'
inputs:
specificationFiles:
description: "<specificationFile1[:primary],specificationFile2[:primary]>: Comma separated list of API specs to import with flag telling if it's a primary artifact. Example: 'specs/my-openapi.yaml:true,specs/my-postmancollection.json:false'"
required: true
microcksURL:
description: 'Microcks instance API endpoint'
required: true
keycloakClientId:
description: 'Keycloak Realm Service Account ClientId'
required: true
keycloakClientSecret:
description: 'Keycloak Realm Service Account ClientSecret'
required: true
runs:
using: 'docker'
image: 'docker://quay.io/microcks/microcks-cli:0.5.6'
entrypoint: '/usr/bin/bash'
args:
- '-c'
- >-
microcks-cli import '${{ inputs.specificationFiles }}' \
--microcksURL=${{ inputs.microcksURL }} \
--keycloakClientId=${{ inputs.keycloakClientId }} --keycloakClientSecret=${{ inputs.keycloakClientSecret }} \
--insecure
branding:
icon: 'upload-cloud'
color: 'blue'