-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (37 loc) · 937 Bytes
/
deploy.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
name: Deploy
on:
push:
branches: [ develop, production ]
jobs:
core-build:
name: Build codebase
uses: ./.github/workflows/core-build.yml
with:
push_image: true
secrets: inherit
infra-build:
name: Build infrastructure
uses: ./.github/workflows/infra-build.yml
secrets: inherit
sonarcloud:
name: SonarCloud
uses: ./.github/workflows/core-sonarcloud.yml
secrets: inherit
deploy_dev:
name: Deploy dev
if: github.ref_name == 'develop'
needs: [ core-build, infra-build ]
uses: ./.github/workflows/template-deploy.yml
secrets: inherit
with:
environment: dev
subscriptionId: analogio-dev
deploy_prod:
name: Deploy prd
if: github.ref_name == 'production'
needs: [ core-build, infra-build ]
uses: ./.github/workflows/template-deploy.yml
secrets: inherit
with:
environment: prd
subscriptionId: analogio-prd