diff --git a/.github/workflows/continuous-deployment.yml b/.github/workflows/continuous-deployment.yml index 88be673..68f6b4f 100644 --- a/.github/workflows/continuous-deployment.yml +++ b/.github/workflows/continuous-deployment.yml @@ -1,11 +1,12 @@ -name: AOE Continuous Deployment +name: AOE Continuous Deployment (PROD) on: workflow_dispatch: - schedule: - - cron: '30 17 * * *' + push: + branches: + - master jobs: AOE-CD: - environment: dev + environment: prod runs-on: ubuntu-latest steps: - run: echo "This job is now running on a ${{ runner.os }} server hosted by GitHub for the ${{ github.ref }} branch of the ${{ github.repository }} repository!" @@ -13,9 +14,9 @@ jobs: shell: pwsh run: | Set-PSRepository PSGallery -InstallationPolicy Trusted - Install-Module -Name Az,Microsoft.Graph.Authentication,Microsoft.Graph.Identity.DirectoryManagement -Force + Install-Module -Name Az.Accounts,Az.Resources,Az.Storage,Az.OperationalInsights,Az.Sql,Az.Automation,Microsoft.Graph.Authentication,Microsoft.Graph.Identity.DirectoryManagement -Force - name: Check out repository code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Login via Az module uses: azure/login@v1 with: @@ -26,5 +27,5 @@ jobs: - name: Testing PowerShell script call shell: pwsh run: | - ./Setup-LogAnalyticsWorkspaces.ps1 + ./Deploy-AzureOptimizationEngine.ps1 -SilentDeploymentSettingsPath ./deploymentSettings.json - run: echo "🍏 This job's status is ${{ job.status }}."