azure-data-services-go-fast.../.github/workflows/Build_Development.yml

57 строки
2.0 KiB
YAML

name: Build Source Artifacts
on:
push:
branches:
- development/0.1
env:
TOGGLE_BUILD_FUNCTIONS: false,
TOGGLE_BUILD_WEBAPP: false,
TOGGLE_DEPLOY_RESOURCEGROUP: true,
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
DOTNET_VERSION: '3.1.x' # set this to the dot net version
jobs:
build:
runs-on: ubuntu-latest
environment: development
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 }}
#Load AdsGoFast Environment Variables
- name: Push Environment File Variables into GitHub compliant Env Variables
shell: pwsh
env:
ENVIRONMENT_NAME: ${{ secrets.ENVIRONMENT_NAME }}
run: |
. .\Steps\PushEnvFileIntoVariables.ps1
ParseEnvFile("$env:ENVIRONMENT_NAME")
Invoke-Expression -Command ".\Steps\CD_SetResourceGroupHash.ps1"
working-directory: ./Deployment/workflows
- name: CI_1a_BuildCode
shell: pwsh
run: ./CI_1a_BuildCode.ps1
working-directory: ./Deployment/workflows
- name: Login via Az module
uses: azure/login@v1
with:
creds: ${{secrets.AZURE_CREDENTIALS}}
enable-AzPSSession: true