Skip to content

Commit

Permalink
Reinstated GH Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Helder Pinto committed Apr 4, 2024
1 parent 37fdac2 commit 45c69e9
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/continuous-deployment.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
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!"
- name: Installing modules
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:
Expand All @@ -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 }}."

0 comments on commit 45c69e9

Please sign in to comment.