-
Notifications
You must be signed in to change notification settings - Fork 0
83 lines (74 loc) · 2.43 KB
/
Copy pathcontinuous-delivery.yml
File metadata and controls
83 lines (74 loc) · 2.43 KB
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
name: Continuous Delivery
on:
push:
branches:
- main
tags:
- v*
paths:
- infra/**
- genai-database-explorer-service/**
workflow_dispatch:
permissions:
id-token: write
contents: read
checks: write
pull-requests: write
jobs:
set-build-variables:
name: Set Build Variables
uses: ./.github/workflows/set-build-variables.yml
lint-and-publish-bicep:
name: Lint and Publish Bicep
uses: ./.github/workflows/lint-and-publish-bicep.yml
lint-build-test-and-publish-dotnet-apps:
name: Lint, Build, Test and Publish .NET Apps
uses: ./.github/workflows/lint-build-test-and-publish-dotnet-apps.yml
permissions:
contents: read
checks: write
pull-requests: write
with:
build_configuration: 'Release'
build-and-publish-frontend-app:
name: Build and Publish Frontend App
uses: ./.github/workflows/build-and-publish-frontend-app.yml
permissions:
contents: read
checks: write
pull-requests: write
validate-infrastructure:
name: Validate Infrastructure
needs:
- set-build-variables
- lint-and-publish-bicep
- lint-build-test-and-publish-dotnet-apps
uses: ./.github/workflows/validate-infrastructure.yml
with:
ENVIRONMENT: test
BUILD_VERSION: ${{ needs.set-build-variables.outputs.BUILD_VERSION }}
AZURE_LOCATION: ${{ vars.AZURE_LOCATION }}
AZURE_ENV_NAME: ${{ format('gaidbexp-{0}', github.run_id) }}
secrets:
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
SQL_SERVER_USERNAME: ${{ secrets.SQL_SERVER_USERNAME }}
SQL_SERVER_PASSWORD: ${{ secrets.SQL_SERVER_PASSWORD }}
e2e-test:
name: E2E Test
needs:
- set-build-variables
- validate-infrastructure
uses: ./.github/workflows/e2e-test.yml
with:
ENVIRONMENT: test
BUILD_VERSION: ${{ needs.set-build-variables.outputs.BUILD_VERSION }}
AZURE_LOCATION: ${{ vars.AZURE_LOCATION }}
AZURE_ENV_NAME: ${{ format('gaidbexp-{0}', github.run_id) }}
secrets:
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
SQL_SERVER_USERNAME: ${{ secrets.SQL_SERVER_USERNAME }}
SQL_SERVER_PASSWORD: ${{ secrets.SQL_SERVER_PASSWORD }}