From 96d11ae7a61466da4ba4307d16fe1ced2f988208 Mon Sep 17 00:00:00 2001 From: Anthony_256 Date: Sun, 17 Sep 2023 21:47:34 +0000 Subject: [PATCH] add the cd azure policy --- .github/workflows/azure-policy-cd.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/.github/workflows/azure-policy-cd.yml b/.github/workflows/azure-policy-cd.yml index e69de29..d7796a7 100644 --- a/.github/workflows/azure-policy-cd.yml +++ b/.github/workflows/azure-policy-cd.yml @@ -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 --policy --scope +