-
Notifications
You must be signed in to change notification settings - Fork 4
87 lines (78 loc) · 2.46 KB
/
continous-delivery.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: "Continuous Deployment"
on:
push:
branches:
- main
jobs:
validation:
uses: ./.github/workflows/fullcheck.yml
secrets:
API_KEY_OPEN_CAGE_DATA_GEOCODING: ${{ secrets.API_KEY_OPEN_CAGE_DATA_GEOCODING }}
API_KEY_OPEN_CAGE_DATA_GEOSEARCH: ${{ secrets.API_KEY_OPEN_CAGE_DATA_GEOSEARCH }}
IC_ADMIN_PASSWORD: ${{ secrets.IC_ADMIN_PASSWORD }}
IC_PASSWORD: ${{ secrets.IC_PASSWORD }}
IC_USERNAME: ${{ secrets.IC_USERNAME }}
SIRENE_INSEE_CLIENT_ID: ${{ secrets.SIRENE_INSEE_CLIENT_ID }}
SIRENE_INSEE_CLIENT_SECRET: ${{ secrets.SIRENE_INSEE_CLIENT_SECRET }}
SIRENE_INSEE_USERNAME: ${{ secrets.SIRENE_INSEE_USERNAME }}
SIRENE_INSEE_PASSWORD: ${{ secrets.SIRENE_INSEE_PASSWORD }}
INCLUSION_CONNECT_CLIENT_SECRET: ${{ secrets.INCLUSION_CONNECT_CLIENT_SECRET }}
build-front-artefact:
uses: ./.github/workflows/build-front-artefact.yml
with:
tag: "v${{ github.run_number }}"
secrets:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
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 }}"
create-wip-pre-release:
needs:
- tag
name: Create pre-release
uses: ./.github/workflows/generate-release.yml
with:
release_tag: "v${{ github.run_number }}-rc"
prerelease: true
deploy-staging:
name: Deploy staging
needs:
- validation
- tag
- build-front-artefact
- build-back-artefact
uses: ./.github/workflows/deploy-to-scalingo.yml
with:
environment: staging
tag: "v${{ github.run_number }}"
isPreRelease: true
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"
isPreRelease: false
secrets:
SCALINGO_API_TOKEN: ${{ secrets.SCALINGO_API_TOKEN }}
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
create-release:
needs:
- deploy-prod
name: Create release
uses: ./.github/workflows/generate-release.yml
with:
release_tag: "v${{ github.run_number }}"
prerelease: false