0.1 #1
2 changed files with 18 additions and 5 deletions
21
.drone.yml
21
.drone.yml
|
@ -52,15 +52,28 @@ steps:
|
||||||
tags: 0.1.0-snapshot
|
tags: 0.1.0-snapshot
|
||||||
|
|
||||||
- name: runservice
|
- name: runservice
|
||||||
image: arminfriedl/fling:dev
|
image: arminfriedl/fling:0.1.0-snapshot
|
||||||
pull: always
|
pull: always
|
||||||
detach: true
|
detach: true
|
||||||
|
|
||||||
- name: generate-clients
|
- name: generate-clients
|
||||||
image: openapitools/openapi-generator-cli
|
image: alpine
|
||||||
commands:
|
commands:
|
||||||
- sleep 35
|
- apk add --update --no-cache openjdk11 npm
|
||||||
- java -jar /opt/openapi-generator/modules/openapi-generator-cli/target/openapi-generator-cli.jar generate -i http://runservice:3000/v3/api-docs -g python -o flingclient
|
- sleep 20
|
||||||
|
- npm install @openapitools/openapi-generator-cli -g
|
||||||
|
- openapi-generator generate
|
||||||
|
-i http://runservice:3000/v3/api-docs
|
||||||
|
-g python
|
||||||
|
-o flingclient.py
|
||||||
|
--enable-post-process-file
|
||||||
|
- openapi-generator generate
|
||||||
|
-i http://runservice:3000/v3/api-docs
|
||||||
|
-g javascript
|
||||||
|
--additional-properties projectName=flinclient,usePromises=true
|
||||||
|
-o flingclient.js
|
||||||
|
--enable-post-process-file
|
||||||
|
- cd flingclient.js && npm install && npm run build && cd ..
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: m2-cache
|
- name: m2-cache
|
||||||
|
|
|
@ -28,6 +28,6 @@ fling:
|
||||||
signing-key: "changeitchangeitchangeitchangeit"
|
signing-key: "changeitchangeitchangeitchangeit"
|
||||||
jwt-expiration: "180000"
|
jwt-expiration: "180000"
|
||||||
api:
|
api:
|
||||||
version: "0"
|
version: "0.1.0-snapshot"
|
||||||
server-url: "http://localhost:8080"
|
server-url: "http://localhost:8080"
|
||||||
server-description: "API server for dev"
|
server-description: "API server for dev"
|
Loading…
Reference in a new issue