diff --git a/gitops-apply-bicep/action.yml b/gitops-apply-bicep/action.yml index 0fc9228..1979316 100644 --- a/gitops-apply-bicep/action.yml +++ b/gitops-apply-bicep/action.yml @@ -42,7 +42,7 @@ runs: echo "ARM_TENANT_ID=$(echo $AZURE_CREDENTIALS | jq -r .tenantId)" >> $GITHUB_ENV shell: bash - name: Log into Azure - uses: azure/login@v1 + uses: azure/login@v2 with: creds: ${{ inputs.azure_credentials }} - name: Deploy infrastructure diff --git a/gitops-apply-terraform/action.yml b/gitops-apply-terraform/action.yml index cc7f5cd..9afa3d8 100644 --- a/gitops-apply-terraform/action.yml +++ b/gitops-apply-terraform/action.yml @@ -43,19 +43,19 @@ runs: echo "ARM_TENANT_ID=$(echo $AZURE_CREDENTIALS | jq -r .tenantId)" >> $GITHUB_ENV shell: bash - name: Setup Terraform - uses: hashicorp/setup-terraform@v2 + uses: hashicorp/setup-terraform@v3 with: terraform_wrapper: false - name: Azure Login - uses: azure/login@v1 + uses: azure/login@v2 with: creds: ${{ inputs.azure_credentials }} - name: Authorize local IP to access the Storage Account - uses: azure/CLI@v1 + uses: azure/CLI@v2 env: TF_STORAGE_ACCOUNT: ${{ inputs.tf_storage_account }} with: - azcliversion: 2.46.0 + azcliversion: 2.58.0 inlineScript: | az storage account update --name $TF_STORAGE_ACCOUNT --default-action Allow sleep 10 @@ -102,10 +102,10 @@ runs: working-directory: '${{ github.workspace }}/terraform' shell: bash - name: Disable local IP access to the Storage Account - uses: azure/CLI@v1 + uses: azure/CLI@v2 env: TF_STORAGE_ACCOUNT: ${{ inputs.tf_storage_account }} with: - azcliversion: 2.46.0 + azcliversion: 2.58.0 inlineScript: | az storage account update --name $TF_STORAGE_ACCOUNT --default-action Allow diff --git a/gitops-build-and-deploy-to-app-service-docker-quarkus-native/action.yml b/gitops-build-and-deploy-to-app-service-docker-quarkus-native/action.yml index 6760f82..618e19c 100644 --- a/gitops-build-and-deploy-to-app-service-docker-quarkus-native/action.yml +++ b/gitops-build-and-deploy-to-app-service-docker-quarkus-native/action.yml @@ -27,7 +27,7 @@ runs: run: docker build -f src/main/docker/Dockerfile.native -t ${{ inputs.container_registry_name }}.azurecr.io/${{ inputs.application_name }}/${{ inputs.application_name }}:${{ github.sha }} . shell: bash - name: Login to Azure - uses: azure/login@v1 + uses: azure/login@v2 with: creds: ${{ inputs.azure_credentials }} - name: Push to Azure Container Registry diff --git a/gitops-build-and-deploy-to-app-service-docker-spring/action.yml b/gitops-build-and-deploy-to-app-service-docker-spring/action.yml index ac86226..d587d0c 100644 --- a/gitops-build-and-deploy-to-app-service-docker-spring/action.yml +++ b/gitops-build-and-deploy-to-app-service-docker-spring/action.yml @@ -25,7 +25,7 @@ runs: run: mvn spring-boot:build-image -Pprod,azure -Dspring-boot.build-image.imageName=${{ inputs.container_registry_name }}.azurecr.io/${{ inputs.application_name }}/${{ inputs.application_name }}:${{ github.sha }} shell: bash - name: Login to Azure - uses: azure/login@v1 + uses: azure/login@v2 with: creds: ${{ inputs.azure_credentials }} - name: Push to Azure Container Registry diff --git a/gitops-build-and-deploy-to-app-service-docker/action.yml b/gitops-build-and-deploy-to-app-service-docker/action.yml index 3354de9..8986d47 100644 --- a/gitops-build-and-deploy-to-app-service-docker/action.yml +++ b/gitops-build-and-deploy-to-app-service-docker/action.yml @@ -18,7 +18,7 @@ runs: run: docker build -t ${{ inputs.container_registry_name }}.azurecr.io/${{ inputs.application_name }}/${{ inputs.application_name }}:${{ github.sha }} . shell: bash - name: Login to Azure - uses: azure/login@v1 + uses: azure/login@v2 with: creds: ${{ inputs.azure_credentials }} - name: Push to Azure Container Registry diff --git a/gitops-deploy-to-app-service-dotnet/action.yml b/gitops-deploy-to-app-service-dotnet/action.yml index 2df843b..7d24446 100644 --- a/gitops-deploy-to-app-service-dotnet/action.yml +++ b/gitops-deploy-to-app-service-dotnet/action.yml @@ -20,7 +20,7 @@ runs: name: ${{ inputs.artifact_name }} path: ./output - name: Login to Azure - uses: azure/login@v1 + uses: azure/login@v2 with: creds: ${{ inputs.azure_credentials }} - name: 'Deploy to Azure App Service' diff --git a/gitops-deploy-to-app-service-java/action.yml b/gitops-deploy-to-app-service-java/action.yml index 0769ca6..0627dab 100644 --- a/gitops-deploy-to-app-service-java/action.yml +++ b/gitops-deploy-to-app-service-java/action.yml @@ -19,7 +19,7 @@ runs: with: name: ${{ inputs.artifact_name }} - name: Login to Azure - uses: azure/login@v1 + uses: azure/login@v2 with: creds: ${{ inputs.azure_credentials }} - name: 'Deploy to Azure App Service' diff --git a/gitops-deploy-to-app-service-nodejs/action.yml b/gitops-deploy-to-app-service-nodejs/action.yml index be4af8a..f4ac61d 100644 --- a/gitops-deploy-to-app-service-nodejs/action.yml +++ b/gitops-deploy-to-app-service-nodejs/action.yml @@ -20,7 +20,7 @@ runs: name: ${{ inputs.artifact_name }} path: . - name: Login to Azure - uses: azure/login@v1 + uses: azure/login@v2 with: creds: ${{ inputs.azure_credentials }} - name: 'Deploy to Azure App Service' diff --git a/gitops-deploy-to-app-service-python/action.yml b/gitops-deploy-to-app-service-python/action.yml index aac1be6..ac412b0 100644 --- a/gitops-deploy-to-app-service-python/action.yml +++ b/gitops-deploy-to-app-service-python/action.yml @@ -20,7 +20,7 @@ runs: name: ${{ inputs.artifact_name }} path: . - name: Login to Azure - uses: azure/login@v1 + uses: azure/login@v2 with: creds: ${{ inputs.azure_credentials }} - name: 'Deploy to Azure App Service' diff --git a/gitops-deploy-to-container-apps/action.yml b/gitops-deploy-to-container-apps/action.yml index 948f2a2..6d4ec57 100644 --- a/gitops-deploy-to-container-apps/action.yml +++ b/gitops-deploy-to-container-apps/action.yml @@ -39,7 +39,7 @@ runs: docker tag application/application:${{ github.sha }} ${{ inputs.image_name }} shell: bash - name: Login to Azure - uses: azure/login@v1 + uses: azure/login@v2 with: creds: ${{ inputs.azure_credentials }} - name: Push to Azure Container Registry @@ -48,7 +48,7 @@ runs: docker push ${{ inputs.image_name }} shell: bash - name: Deploy to Container App - uses: azure/CLI@v1 + uses: azure/CLI@v2 with: inlineScript: | az config set extension.use_dynamic_install=yes_without_prompt diff --git a/gitops-deploy-to-function-dotnet/action.yml b/gitops-deploy-to-function-dotnet/action.yml index 491ae43..7593970 100644 --- a/gitops-deploy-to-function-dotnet/action.yml +++ b/gitops-deploy-to-function-dotnet/action.yml @@ -20,7 +20,7 @@ runs: name: ${{ inputs.artifact_name }} path: ./output - name: Login to Azure - uses: azure/login@v1 + uses: azure/login@v2 with: creds: ${{ inputs.azure_credentials }} - name: 'Deploy to Azure Functions' diff --git a/gitops-deploy-to-function-java/action.yml b/gitops-deploy-to-function-java/action.yml index 182aefb..072f865 100644 --- a/gitops-deploy-to-function-java/action.yml +++ b/gitops-deploy-to-function-java/action.yml @@ -20,7 +20,7 @@ runs: name: ${{ inputs.artifact_name }} path: ${{ inputs.application_name }} - name: Login to Azure - uses: azure/login@v1 + uses: azure/login@v2 with: creds: ${{ inputs.azure_credentials }} - name: 'Deploy to Azure Functions' diff --git a/gitops-deploy-to-function-nodejs/action.yml b/gitops-deploy-to-function-nodejs/action.yml index 02a968c..d08abf9 100644 --- a/gitops-deploy-to-function-nodejs/action.yml +++ b/gitops-deploy-to-function-nodejs/action.yml @@ -20,7 +20,7 @@ runs: name: ${{ inputs.artifact_name }} path: . - name: Login to Azure - uses: azure/login@v1 + uses: azure/login@v2 with: creds: ${{ inputs.azure_credentials }} - name: 'Deploy to Azure Functions' diff --git a/gitops-deploy-to-function-python/action.yml b/gitops-deploy-to-function-python/action.yml index 7afa471..3356ac5 100644 --- a/gitops-deploy-to-function-python/action.yml +++ b/gitops-deploy-to-function-python/action.yml @@ -20,7 +20,7 @@ runs: name: ${{ inputs.artifact_name }} path: . - name: Login to Azure - uses: azure/login@v1 + uses: azure/login@v2 with: creds: ${{ inputs.azure_credentials }} - name: 'Deploy to Azure Functions' diff --git a/gitops-deploy-to-spring-apps-java/action.yml b/gitops-deploy-to-spring-apps-java/action.yml index 94bf637..d4258ef 100644 --- a/gitops-deploy-to-spring-apps-java/action.yml +++ b/gitops-deploy-to-spring-apps-java/action.yml @@ -26,7 +26,7 @@ runs: with: name: package - name: Login to Azure - uses: azure/login@v1 + uses: azure/login@v2 with: creds: ${{ inputs.azure_credentials }} - name: Get Subscription ID diff --git a/gitops-deploy-to-spring-cloud-java/action.yml b/gitops-deploy-to-spring-cloud-java/action.yml index dbc6ccf..2e4cc52 100644 --- a/gitops-deploy-to-spring-cloud-java/action.yml +++ b/gitops-deploy-to-spring-cloud-java/action.yml @@ -26,7 +26,7 @@ runs: with: name: package - name: Login to Azure - uses: azure/login@v1 + uses: azure/login@v2 with: creds: ${{ inputs.azure_credentials }} - name: Get Subscription ID