Update action and librairies versions

This commit is contained in:
Julien Dubois 2024-03-22 08:44:24 +01:00
Родитель 19b096293c
Коммит 5eb1d1f767
16 изменённых файлов: 22 добавлений и 22 удалений

Просмотреть файл

@ -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

Просмотреть файл

@ -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

Просмотреть файл

@ -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

Просмотреть файл

@ -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

Просмотреть файл

@ -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

Просмотреть файл

@ -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'

Просмотреть файл

@ -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'

Просмотреть файл

@ -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'

Просмотреть файл

@ -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'

Просмотреть файл

@ -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

Просмотреть файл

@ -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'

Просмотреть файл

@ -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'

Просмотреть файл

@ -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'

Просмотреть файл

@ -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'

Просмотреть файл

@ -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

Просмотреть файл

@ -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