This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | name: Sync NGINX Configs to Azure | |
| on: | |
| push: | |
| branches: | |
| - master | |
| paths: | |
| - configs/** | |
| permissions: | |
| id-token: write | |
| contents: read | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository content | |
| uses: actions/checkout@v4 | |
| - name: Azure login | |
| uses: azure/login@v2 | |
| with: | |
| client-id: ${{ secrets.AZURE_CLIENT_ID }} | |
| tenant-id: ${{ secrets.AZURE_TENANT_ID }} | |
| subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} | |
| - name: Sync NGINX Config to Azure | |
| uses: nginxinc/[email protected] | |
| with: | |
| subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} | |
| resource-group-name: ${{ secrets.AZURE_RESOURCE_GROUP_NAME }} | |
| nginx-deployment-name: ${{ secrets.NGINX_DEPLOYMENT_NAME }} | |
| nginx-config-directory-path: configs/ | |
| nginx-root-config-file: nginx.conf | |
| transformed-nginx-config-directory-path: /etc/nginx/ |