mirror of
https://github.com/valitydev/swag-questionary-aggr-proxy.git
synced 2024-11-06 00:15:17 +00:00
[TD-150] Add build
This commit is contained in:
parent
9ff6a78960
commit
923dee3117
15
.github/workflows/basic-linters.yml
vendored
Normal file
15
.github/workflows/basic-linters.yml
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
name: Vality basic linters
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
- main
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- main
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
uses: valitydev/base-workflows/.github/workflows/basic-linters.yml@v1
|
10
.github/workflows/build.yml
vendored
Normal file
10
.github/workflows/build.yml
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
name: Maven Build Artifact
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- '*'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
uses: valitydev/base-workflow/.github/workflows/maven-swag-build.yml@v1
|
18
.github/workflows/deploy.yml
vendored
Normal file
18
.github/workflows/deploy.yml
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
name: Maven Deploy Artifact
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'master'
|
||||
- 'main'
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
uses: valitydev/java-workflow/.github/workflows/maven-swag-deploy.yml@v1
|
||||
secrets:
|
||||
server-username: ${{ secrets.OSSRH_USERNAME }}
|
||||
server-password: ${{ secrets.OSSRH_TOKEN }}
|
||||
deploy-secret-key: ${{ secrets.OSSRH_GPG_SECRET_KEY }}
|
||||
deploy-secret-key-password: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
mm-webhook-url: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
|
2
.github/workflows/settings.yml
vendored
Normal file
2
.github/workflows/settings.yml
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
# These settings are synced to GitHub by https://probot.github.io/apps/settings/
|
||||
_extends: .github
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -38,7 +38,6 @@ node_modules
|
||||
|
||||
# Generated
|
||||
web_deploy/
|
||||
package-lock.json
|
||||
|
||||
# User-specific stuff:
|
||||
.idea/
|
||||
|
18
.redocly.yaml
Normal file
18
.redocly.yaml
Normal file
@ -0,0 +1,18 @@
|
||||
# See https://docs.redoc.ly/cli/configuration/ for more information.
|
||||
apiDefinitions:
|
||||
core: 'web_deploy/openapi.yaml'
|
||||
lint:
|
||||
plugins:
|
||||
- './plugins/local.js'
|
||||
extends:
|
||||
- recommended
|
||||
rules:
|
||||
tag-description: off
|
||||
preprocessors:
|
||||
local/merge-schemas: on
|
||||
referenceDocs:
|
||||
showConsole: true
|
||||
layout:
|
||||
scope: section
|
||||
routingStrategy: browser
|
||||
htmlTemplate: ./web/index.html
|
38
Jenkinsfile
vendored
38
Jenkinsfile
vendored
@ -1,38 +0,0 @@
|
||||
#!groovy
|
||||
build('swag-questionary-aggr-proxy', 'docker-host') {
|
||||
checkoutRepo()
|
||||
loadBuildUtils()
|
||||
|
||||
def pipeDefault
|
||||
def gitUtils
|
||||
runStage('load pipeline') {
|
||||
env.JENKINS_LIB = "build_utils/jenkins_lib"
|
||||
pipeDefault = load("${env.JENKINS_LIB}/pipeDefault.groovy")
|
||||
gitUtils = load("${env.JENKINS_LIB}/gitUtils.groovy")
|
||||
}
|
||||
|
||||
pipeDefault() {
|
||||
runStage('init') {
|
||||
withGithubSshCredentials {
|
||||
sh 'make wc_init'
|
||||
}
|
||||
}
|
||||
|
||||
runStage('build') {
|
||||
sh 'make wc_build'
|
||||
}
|
||||
|
||||
// Java
|
||||
runStage('Build client & server') {
|
||||
withCredentials([[$class: 'FileBinding', credentialsId: 'java-maven-settings.xml', variable: 'SETTINGS_XML']]) {
|
||||
if (env.BRANCH_NAME == 'master' || env.BRANCH_NAME.startsWith('epic/')) {
|
||||
sh 'make SETTINGS_XML=${SETTINGS_XML} BRANCH_NAME=${BRANCH_NAME} java.swag.deploy_client'
|
||||
sh 'make SETTINGS_XML=${SETTINGS_XML} BRANCH_NAME=${BRANCH_NAME} java.swag.deploy_server'
|
||||
} else {
|
||||
sh 'make SETTINGS_XML=${SETTINGS_XML} BRANCH_NAME=${BRANCH_NAME} java.swag.compile_client'
|
||||
sh 'make SETTINGS_XML=${SETTINGS_XML} BRANCH_NAME=${BRANCH_NAME} java.swag.compile_server'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -1 +0,0 @@
|
||||
Subproject commit a7655bc60c877a65cdfe3d9b668021d970d88a76
|
@ -5,7 +5,7 @@
|
||||
"scripts": {
|
||||
"build": "node ./scripts/build.js",
|
||||
"swagger": "swagger-repo",
|
||||
"test": "swagger-repo validate",
|
||||
"validate": "swagger-repo validate",
|
||||
"start": "gulp serve"
|
||||
},
|
||||
"devDependencies": {
|
||||
@ -19,6 +19,7 @@
|
||||
"portfinder": "^1.0.20",
|
||||
"shelljs": "^0.8.3",
|
||||
"swagger-repo": "^1.0.0",
|
||||
"swagger-ui": "^2.1.4"
|
||||
"swagger-ui": "^2.1.4",
|
||||
"redoc-cli": "^0.10.2"
|
||||
}
|
||||
}
|
||||
|
8
pom.xml
8
pom.xml
@ -5,9 +5,9 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<groupId>com.rbkmoney</groupId>
|
||||
<artifactId>parent</artifactId>
|
||||
<version>1.0.0</version>
|
||||
<groupId>dev.vality</groupId>
|
||||
<artifactId>library-parent-pom</artifactId>
|
||||
<version>1.0.2</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>swag-questionary-aggr</artifactId>
|
||||
@ -19,7 +19,7 @@
|
||||
</description>
|
||||
|
||||
<properties>
|
||||
<default.package>com.rbkmoney.swag.questionary_aggr_proxy</default.package>
|
||||
<default.package>dev.vality.swag.questionary_aggr_proxy</default.package>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<swagger-annotations-version>1.5.21</swagger-annotations-version>
|
||||
<jodatime-version>2.7</jodatime-version>
|
||||
|
@ -17,8 +17,8 @@ properties:
|
||||
type: string
|
||||
type:
|
||||
description: Вид подразделения (1 цифра)
|
||||
0 — подразделение ФМС
|
||||
1 — ГУВД или МВД региона
|
||||
2 — УВД или ОВД района или города
|
||||
3 — отделение полиции
|
||||
0 — подразделение ФМС
|
||||
1 — ГУВД или МВД региона
|
||||
2 — УВД или ОВД района или города
|
||||
3 — отделение полиции
|
||||
type: string
|
||||
|
34
wercker.yml
34
wercker.yml
@ -1,34 +0,0 @@
|
||||
box: node:12
|
||||
|
||||
build:
|
||||
steps:
|
||||
- npm-install
|
||||
- npm-test
|
||||
- script:
|
||||
name: build docsite
|
||||
code: npm run build -- ${WERCKER_OUTPUT_DIR}
|
||||
|
||||
deploy:
|
||||
steps:
|
||||
- lukevivier/gh-pages:
|
||||
repo: rbkmoney/swag-questionary-aggr-proxy-public
|
||||
token: ${GITHUB_API_TOKEN}
|
||||
after-steps:
|
||||
- slack-notifier:
|
||||
url: ${SLACK_WEBHOOK_URL}
|
||||
username: "wercker"
|
||||
|
||||
release-v:
|
||||
steps:
|
||||
- script:
|
||||
name: prepare release artifacts for branch v1, v2, etc.
|
||||
code: mkdir -p out && cp ./swagger.{yaml,json} out/
|
||||
- lordlothar99/git-push:
|
||||
gh_oauth: ${GITHUB_API_TOKEN}
|
||||
branch: release/${WERCKER_GIT_BRANCH}
|
||||
basedir: out
|
||||
message: Release ${WERCKER_GIT_OWNER}/${WERCKER_GIT_REPOSITORY}@${WERCKER_GIT_COMMIT}
|
||||
after-steps:
|
||||
- slack-notifier:
|
||||
url: ${SLACK_WEBHOOK_URL}
|
||||
username: "wercker"
|
Loading…
Reference in New Issue
Block a user