Skip to content

update README

update README #116

name: "Continuous Deployment"
on:
push:
branches:
- main
jobs:
validation:
uses: ./.github/workflows/fullcheck.yml
build-front-artefact:
uses: ./.github/workflows/build-front-artefact.yml
with:
tag: "v${{ github.run_number }}"
build-back-artefact:
uses: ./.github/workflows/build-back-artefact.yml
with:
tag: "v${{ github.run_number }}"
tag:
name: "Tag"
uses: ./.github/workflows/ci-add-tag.yml
with:
tag: "v${{ github.run_number }}"
deploy-dev:
name: Deploy dev
needs: [validation, tag, build-front-artefact, build-back-artefact]
uses: ./.github/workflows/deploy-to-scalingo.yml
with:
environment: dev
tag: "v${{ github.run_number }}"
secrets:
SCALINGO_API_TOKEN: ${{ secrets.SCALINGO_API_TOKEN }}
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
run-cypress-on-dev:
name: Run Cypress on dev
needs: deploy-dev
uses: ./.github/workflows/cypress-run.yml
with:
environment: dev
tag: "v${{ github.run_number }}"
secrets:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
deploy-staging:
name: Deploy staging
needs: deploy-dev
uses: ./.github/workflows/deploy-to-scalingo.yml
with:
environment: staging
tag: "v${{ github.run_number }}"
secrets:
SCALINGO_API_TOKEN: ${{ secrets.SCALINGO_API_TOKEN }}
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
deploy-prod:
name: Deploy prod
needs: deploy-staging
uses: ./.github/workflows/deploy-to-scalingo.yml
with:
environment: prod
tag: "v${{ github.run_number }}"
region: "osc-secnum-fr1"
secrets:
SCALINGO_API_TOKEN: ${{ secrets.SCALINGO_API_TOKEN }}
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}