diff --git a/.github/workflows/apply_ingresses.yaml b/.github/workflows/apply_ingresses.yaml index 4aa8356..0b1d041 100644 --- a/.github/workflows/apply_ingresses.yaml +++ b/.github/workflows/apply_ingresses.yaml @@ -11,16 +11,19 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4.1.1 - name: Fetch tags for comparison run: | git fetch --prune --unshallow --tags + - uses: azure/login@v2 + with: + creds: ${{ secrets.AZURE_AKS }} + - name: Set the target AKS cluster - uses: Azure/aks-set-context@v1 + uses: Azure/aks-set-context@v4.0.0 with: - creds: '${{ secrets.AZURE_AKS }}' cluster-name: microservices resource-group: kubernetes @@ -44,7 +47,7 @@ jobs: needs: apply_ingresses steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4.1.1 - name: Update Ingress Tag run: | diff --git a/.github/workflows/deploy_nginx_production.yaml b/.github/workflows/deploy_nginx_production.yaml index 4999e44..6c8658f 100644 --- a/.github/workflows/deploy_nginx_production.yaml +++ b/.github/workflows/deploy_nginx_production.yaml @@ -11,12 +11,15 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4.1.1 + + - uses: azure/login@v2 + with: + creds: ${{ secrets.AZURE_AKS }} - name: Set the target AKS cluster - uses: Azure/aks-set-context@v1 + uses: Azure/aks-set-context@v4.0.0 with: - creds: '${{ secrets.AZURE_AKS }}' cluster-name: microservices resource-group: kubernetes diff --git a/.github/workflows/deploy_nginx_staging.yaml b/.github/workflows/deploy_nginx_staging.yaml index fcc09c5..01f2a16 100644 --- a/.github/workflows/deploy_nginx_staging.yaml +++ b/.github/workflows/deploy_nginx_staging.yaml @@ -11,20 +11,20 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4.1.1 - name: Login to GitHub Container Registry - uses: docker/login-action@v2 + uses: docker/login-action@v3.1.0 with: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v3 - name: Build and push - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v5 with: context: . push: true @@ -57,7 +57,7 @@ jobs: needs: test_configuration steps: - name: Login to GitHub Container Registry - uses: docker/login-action@v2 + uses: docker/login-action@v3.1.0 with: registry: ghcr.io username: ${{ github.actor }} @@ -74,15 +74,18 @@ jobs: runs-on: ubuntu-latest needs: push_latest_tag steps: + - uses: azure/login@v2 + with: + creds: ${{ secrets.AZURE_AKS }} + - name: Set the target AKS cluster - uses: Azure/aks-set-context@v1 + uses: Azure/aks-set-context@v4.0.0 with: - creds: '${{ secrets.AZURE_AKS }}' cluster-name: microservices resource-group: kubernetes - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4.1.1 - name: Modify & apply template run: | diff --git a/.github/workflows/validate_ingresses.yaml b/.github/workflows/validate_ingresses.yaml index 91ddd8a..e302add 100644 --- a/.github/workflows/validate_ingresses.yaml +++ b/.github/workflows/validate_ingresses.yaml @@ -9,16 +9,19 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4.1.1 - name: Fetch tags for comparison run: | git fetch --prune --unshallow --tags + - uses: azure/login@v2 + with: + creds: ${{ secrets.AZURE_AKS }} + - name: Set the target AKS cluster - uses: Azure/aks-set-context@v1 + uses: Azure/aks-set-context@v4.0.0 with: - creds: '${{ secrets.AZURE_AKS }}' cluster-name: microservices resource-group: kubernetes