Bump swagger-ui-express from 4.6.2 to 5.0.1 #326
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Push Container to Heroku | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Login to Heroku Container registry | |
env: | |
HEROKU_API_KEY: ${{secrets.HEROKU_API_KEY}} | |
run: | | |
heroku container:login | |
- name: Build and push | |
env: | |
HEROKU_API_KEY: ${{secrets.HEROKU_API_KEY}} | |
run: | | |
heroku config:set MAX_REQUEST_BY_IP=100 -a ${{secrets.HEROKU_APP_NAME}} | |
heroku config:set PORT=9000 -a ${{secrets.HEROKU_APP_NAME}} | |
heroku config:set WINDOW_TIME=900000 -a ${{secrets.HEROKU_APP_NAME}} | |
heroku config:set URL_DB="mongodb+srv://${{secrets.USER_DB_ATLAS}}:${{ secrets.PASS_DB_ATLAS }}@${{secrets.URL_DB_ATLAS}}" -a ${{secrets.HEROKU_APP_NAME}} | |
heroku config:set LIMIT_SEARCH=10 -a ${{secrets.HEROKU_APP_NAME}} | |
heroku container:push -a ${{secrets.HEROKU_APP_NAME}} web | |
- name: Release | |
env: | |
HEROKU_API_KEY: ${{secrets.HEROKU_API_KEY}} | |
run: heroku container:release -a ${{secrets.HEROKU_APP_NAME}} web | |
- name: EthicalCheck | |
# You may pin to the exact commit or the version. | |
# uses: apisec-inc/ethicalcheck-action@3ec5e93b42e591349e46635da9f909bac66c23a9 | |
uses: apisec-inc/[email protected] | |
with: | |
# The Open API Specification or public Postman collection URL. | |
oas-url: https://${{secrets.HEROKU_APP_NAME}}.herokuapp.com/api/v1/operateurs_funeraires/api-docs/ | |
# The email address to which the API penetration test report will be sent. | |
email: ${{secrets.HEROKU_EMAIL}} |