0.1 #1

Merged
armin merged 30 commits from 0.1 into master 2020-07-26 00:51:55 +00:00
2 changed files with 11 additions and 8 deletions
Showing only changes of commit f6fddae187 - Show all commits

View file

@ -19,6 +19,13 @@ steps:
- cd service/fling - cd service/fling
- mvn -Pprod clean deploy - mvn -Pprod clean deploy
- name: runservice
image: adoptopenjdk:11-jre-hotspot
commands:
- cd service/fling/target
- java -jar fling-0.1.0-SNAPSHOT.jar
detach: true
- name: build-web - name: build-web
image: node:latest image: node:latest
volumes: volumes:
@ -53,11 +60,6 @@ steps:
build_args: build_args:
- VERSION=0.1.0-snapshot - VERSION=0.1.0-snapshot
- name: runservice
image: arminfriedl/fling:0.1.0-snapshot
pull: always
detach: true
- name: generate-clients - name: generate-clients
image: alpine image: alpine
environment: environment:
@ -71,13 +73,13 @@ steps:
- npm install @openapitools/openapi-generator-cli -g - npm install @openapitools/openapi-generator-cli -g
# Python client # Python client
- openapi-generator generate - openapi-generator generate
-i http://runservice:3000/v3/api-docs -i http://runservice:8080/v3/api-docs
-g python -g python
-o flingclient.py -o flingclient.py
--enable-post-process-file --enable-post-process-file
# JavaScript client # JavaScript client
- openapi-generator generate - openapi-generator generate
-i http://runservice:3000/v3/api-docs -i http://runservice:8080/v3/api-docs
-g javascript -g javascript
--additional-properties projectName=flingclient,usePromises=true,npmRepository=https://nexus.friedl.net/repository/npm-private/ --additional-properties projectName=flingclient,usePromises=true,npmRepository=https://nexus.friedl.net/repository/npm-private/
-o flingclient.js -o flingclient.js

View file

@ -17,4 +17,5 @@ echo "Replacing ${CUR_VERSION} with ${NEW_VERSION}"
sed -i "s/${CUR_VERSION^^}/${NEW_VERSION^^}/g" service/fling/pom.xml sed -i "s/${CUR_VERSION^^}/${NEW_VERSION^^}/g" service/fling/pom.xml
sed -i "s/${CUR_VERSION,,}/${NEW_VERSION,,}/g" service/fling/src/main/resources/*.yml sed -i "s/${CUR_VERSION,,}/${NEW_VERSION,,}/g" service/fling/src/main/resources/*.yml
sed -i "s/${CUR_VERSION,,}/${NEW_VERSION,,}/g" .drone.yml sed -i "s/${CUR_VERSION,,}/${NEW_VERSION,,}/g" .drone.yml
sed -i "s/${CUR_VERSION,,}/${NEW_VERSION,,}/g" VERSION sed -i "s/${CUR_VERSION^^}/${NEW_VERSION^^}/g" .drone.yml
sed -i "s/${CUR_VERSION}/${NEW_VERSION}/g" VERSION