fix(deps): update dependency @auth0/nextjs-auth0 to v1 [security] #504
Workflow file for this run
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: Review | |
on: | |
push: | |
branches-ignore: | |
- master | |
tags-ignore: | |
- v* | |
concurrency: | |
cancel-in-progress: true | |
group: review-${{ github.ref }} | |
jobs: | |
############################################################################## | |
## CREATE POSTGRES DATABASE | |
############################################################################## | |
create-db: | |
name: Create postgres database | |
runs-on: ubuntu-latest | |
steps: | |
- uses: SocialGouv/actions/autodevops-create-db@v1 | |
with: | |
kubeconfig: ${{ secrets.KUBECONFIG }} | |
rancherId: ${{ secrets.RANCHER_PROJECT_ID }} | |
############################################################################## | |
## BUILD AND REGISTER APPLICATION IMAGE | |
############################################################################## | |
register: | |
name: Build & Register application | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get project name | |
run: | | |
echo "project=${GITHUB_REPOSITORY#*/}" >> $GITHUB_ENV | |
- name: Use autodevops build and register | |
uses: SocialGouv/actions/autodevops-build-register@v1 | |
with: | |
imageName: fabrique/carnets | |
project: ${{ env.project }} | |
token: ${{ secrets.GITHUB_TOKEN }} | |
############################################################################## | |
## BUILD AND REGISTER HASURA IMAGE | |
############################################################################## | |
register-hasura: | |
name: Build & Register Hasura | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get project name | |
run: | | |
echo "project=${GITHUB_REPOSITORY#*/}" >> $GITHUB_ENV | |
- name: Use autodevops build and register | |
uses: SocialGouv/actions/autodevops-build-register@v1 | |
with: | |
imageName: fabrique/hasura | |
project: ${{ env.project }} | |
token: ${{ secrets.GITHUB_TOKEN }} | |
dockerfile: ./packages/hasura/Dockerfile | |
############################################################################## | |
## GENERATE KUBERNETES MANIFESTS | |
############################################################################## | |
manifests: | |
name: Generate k8s manifests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Use autodevops manifests generation | |
uses: SocialGouv/actions/autodevops-manifests@v1 | |
with: | |
environment: "dev" | |
rancherId: ${{ secrets.RANCHER_PROJECT_ID }} | |
socialgouvBaseDomain: ${{ secrets.SOCIALGOUV_BASE_DOMAIN }} | |
pgUserSecretPrefix: pg-user | |
############################################################################## | |
## DEPLOY APPLICATION OVER KUBERNETES | |
############################################################################## | |
deploy: | |
name: Deploy application | |
runs-on: ubuntu-latest | |
needs: [create-db, register, register-hasura, manifests] | |
steps: | |
- name: Use autodevops deployment | |
uses: SocialGouv/actions/autodevops-deploy@v1 | |
with: | |
environment: "dev" | |
token: ${{ secrets.GITHUB_TOKEN }} | |
kubeconfig: ${{ secrets.KUBECONFIG }} | |
rancherId: ${{ secrets.RANCHER_PROJECT_ID }} | |
############################################################################## | |
## RESTORE DATABASE | |
############################################################################## | |
restore-db: | |
name: Restore database | |
runs-on: ubuntu-latest | |
needs: deploy | |
steps: | |
- name: Use autodevops database restore | |
uses: SocialGouv/actions/autodevops-restore-db@v1 | |
with: | |
kubeconfig: ${{ secrets.KUBECONFIG }} | |
rancherId: ${{ secrets.RANCHER_PROJECT_ID }} | |
socialgouvBaseDomain: ${{ secrets.SOCIALGOUV_BASE_DOMAIN }} | |
pgUserSecretPrefix: pg-user | |