Simple docker image to be used, to create and upload openAPI documentation to bump.sh
docker run -ti --rm -v$(pwd):/opt/app taxfix/oas-bump /validate.sh
docker run -ti --rm -v$(pwd):/opt/app taxfix/oas-bump /generate-publish.sh
Make sure to define BUMP_DOC_ID and BUMP_TOKEN as env variables.
jobs:
publish-api-documentation:
docker:
- image: taxfix/oas-bump:latest
steps:
- checkout
- run: cp /generate-publish.sh .
- run: ./generate-publish.sh
workflows:
version: 2
workflow-name:
jobs:
- publish-api-documentation:
requires:
- build
filters:
branches:
only:
- master
validate-docs:
stage: build-and-push
image: taxfix/oas-bump:latest
before_script:
- ''
script:
- /validate.sh
environment:
name: integration
allow_failure: false
publish-specs:
stage: build-and-push
image: taxfix/oas-bump:latest
before_script:
- ''
script:
- /generate-publish.sh
rules:
- if: $CI_COMMIT_BRANCH == "master"
when: always
environment:
name: integration
allow_failure: false
Generate documentation using swagger-inline (without bump upload)
docker run -ti --rm -v$(pwd):/opt/app taxfix/oas-bump /generate.sh
Content type
Image
Digest
Size
31.2 MB
Last updated
about 5 years ago
docker pull taxfix/oas-bump