2021-04-29 05:39:51 +03:00
|
|
|
name: Build Source Artifacts
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2021-08-20 10:53:52 +03:00
|
|
|
- test/0.1
|
2021-04-29 05:39:51 +03:00
|
|
|
|
2021-04-30 09:19:20 +03:00
|
|
|
|
2021-04-29 05:39:51 +03:00
|
|
|
env:
|
2021-04-29 11:41:08 +03:00
|
|
|
TOGGLE_BUILD_FUNCTIONS: false,
|
|
|
|
TOGGLE_BUILD_WEBAPP: false,
|
2021-04-29 17:39:32 +03:00
|
|
|
TOGGLE_DEPLOY_RESOURCEGROUP: true,
|
2021-04-29 05:39:51 +03:00
|
|
|
AZURE_WEBAPP_NAME: my-app-name # set this to your application's name
|
|
|
|
AZURE_WEBAPP_PACKAGE_PATH: '.' # set this to the path to your web app project, defaults to the repository root
|
2021-04-30 09:25:15 +03:00
|
|
|
DOTNET_VERSION: '3.1.x' # set this to the dot net version
|
2021-04-29 05:39:51 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
2021-04-30 09:19:20 +03:00
|
|
|
environment: development
|
2021-04-29 05:39:51 +03:00
|
|
|
steps:
|
|
|
|
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
|
|
|
|
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
|
|
|
|
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
|
|
|
|
- name: Check out repository code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
|
|
|
|
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
|
|
|
|
- run: echo "🍏 This job's status is ${{ job.status }}."
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Setup .NET
|
|
|
|
uses: actions/setup-dotnet@v1
|
|
|
|
with:
|
|
|
|
dotnet-version: ${{ env.DOTNET_VERSION }}
|
2021-04-30 08:34:53 +03:00
|
|
|
|
|
|
|
#Load AdsGoFast Environment Variables
|
2021-04-30 08:41:36 +03:00
|
|
|
- name: Push Environment File Variables into GitHub compliant Env Variables
|
2021-04-30 08:34:53 +03:00
|
|
|
shell: pwsh
|
2021-04-30 09:16:30 +03:00
|
|
|
env:
|
|
|
|
ENVIRONMENT_NAME: ${{ secrets.ENVIRONMENT_NAME }}
|
2021-04-30 08:58:32 +03:00
|
|
|
run: |
|
2021-05-03 01:29:49 +03:00
|
|
|
. .\Steps\PushEnvFileIntoVariables.ps1
|
2021-04-30 09:10:55 +03:00
|
|
|
ParseEnvFile("$env:ENVIRONMENT_NAME")
|
2021-07-15 09:36:21 +03:00
|
|
|
Invoke-Expression -Command ".\Steps\CD_SetResourceGroupHash.ps1"
|
2021-07-15 09:39:31 +03:00
|
|
|
working-directory: ./solution/Deployment/workflows
|
2021-04-30 08:34:53 +03:00
|
|
|
|
2021-05-21 09:34:25 +03:00
|
|
|
- name: CI_1a_BuildCode
|
2021-05-21 09:33:23 +03:00
|
|
|
shell: pwsh
|
2021-05-21 09:36:38 +03:00
|
|
|
run: ./CI_1a_BuildCode.ps1
|
2021-07-15 09:39:31 +03:00
|
|
|
working-directory: ./solution/Deployment/workflows
|
2021-05-21 09:33:23 +03:00
|
|
|
|
2021-07-15 09:36:21 +03:00
|
|
|
- name: Login via Az module
|
|
|
|
uses: azure/login@v1
|
2021-04-29 05:39:51 +03:00
|
|
|
with:
|
2021-07-15 09:36:21 +03:00
|
|
|
creds: ${{secrets.AZURE_CREDENTIALS}}
|
|
|
|
enable-AzPSSession: true
|
2021-07-15 09:59:46 +03:00
|
|
|
|
|
|
|
- name: CD_1a_DeployServices
|
|
|
|
shell: pwsh
|
|
|
|
run: ./CD_1a_DeployServices.ps1
|
|
|
|
working-directory: ./solution/Deployment/workflows
|
2021-08-04 08:39:36 +03:00
|
|
|
|
|
|
|
- name: CD_2b_ConfigureServices
|
2021-07-27 05:11:28 +03:00
|
|
|
shell: pwsh
|
2021-08-04 08:39:36 +03:00
|
|
|
run: ./CD_2b_ConfigureServices.ps1
|
2021-08-20 10:53:52 +03:00
|
|
|
working-directory: ./solution/Deployment/workflows
|