swag-analytics/wercker.yml
Anatolii Karlov 1cbeab91b1
replace limit parameter for reports as optional (#50)
Co-authored-by: Rinat Arsaev <11846445+KrickRay@users.noreply.github.com>
2021-02-12 00:00:51 +07:00

47 lines
1.1 KiB
YAML

box:
id: node:14
username: ${DOCKER_ID}
password: ${DOCKER_PWD}
build:
steps:
- mvandervliet/npm-ci
- npm-test
- script:
name: build docsite
code: npm run build -- ${WERCKER_OUTPUT_DIR}
dev:
steps:
- mvandervliet/npm-ci
- npm-test
- internal/shell
release-epic:
steps:
- script:
name: prepare release artifacts for epic/* branch
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: Epic release ${WERCKER_GIT_OWNER}/${WERCKER_GIT_REPOSITORY}@${WERCKER_GIT_COMMIT}
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}
deploy:
steps:
- lukevivier/gh-pages:
repo: rbkmoney/anapi
token: ${GITHUB_API_TOKEN}