Skip to content

Commit

Permalink
add the cd azure policy
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyByansi committed Sep 17, 2023
1 parent 4339946 commit 96d11ae
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/azure-policy-cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Azure Policy CD

on:
workflow_run:
workflows: ["Azure Policy CI"]
types:
- completed

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Set Up Azure CLI
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}

- name: Deploy Azure Policies
run: |
# Deploy Azure policies here.
# Example: az policy assignment create --name <assignment-name> --policy <policy-definition-file> --scope <scope>

0 comments on commit 96d11ae

Please sign in to comment.