From 673850327376b2bf1e75326061e509b21a19170e Mon Sep 17 00:00:00 2001 From: Zach Wolfenbarger Date: Thu, 18 Apr 2024 13:49:24 -0500 Subject: [PATCH 1/2] Update all shared action versions to latest --- .github/workflows/apply_ingresses.yaml | 6 +++--- .github/workflows/deploy_nginx_production.yaml | 4 ++-- .github/workflows/deploy_nginx_staging.yaml | 14 +++++++------- .github/workflows/validate_ingresses.yaml | 4 ++-- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/apply_ingresses.yaml b/.github/workflows/apply_ingresses.yaml index 4aa8356..cbaeffe 100644 --- a/.github/workflows/apply_ingresses.yaml +++ b/.github/workflows/apply_ingresses.yaml @@ -11,14 +11,14 @@ 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 - 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 @@ -44,7 +44,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..78d9845 100644 --- a/.github/workflows/deploy_nginx_production.yaml +++ b/.github/workflows/deploy_nginx_production.yaml @@ -11,10 +11,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4.1.1 - 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 diff --git a/.github/workflows/deploy_nginx_staging.yaml b/.github/workflows/deploy_nginx_staging.yaml index fcc09c5..5be6ec0 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 }} @@ -75,14 +75,14 @@ jobs: needs: push_latest_tag steps: - 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..e19654d 100644 --- a/.github/workflows/validate_ingresses.yaml +++ b/.github/workflows/validate_ingresses.yaml @@ -9,14 +9,14 @@ 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 - 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 From 19754681ced08498d3a155a9b0e092d24f62bdd6 Mon Sep 17 00:00:00 2001 From: Zach Wolfenbarger Date: Thu, 18 Apr 2024 13:55:10 -0500 Subject: [PATCH 2/2] Update to new azure login syntax --- .github/workflows/apply_ingresses.yaml | 5 ++++- .github/workflows/deploy_nginx_production.yaml | 5 ++++- .github/workflows/deploy_nginx_staging.yaml | 5 ++++- .github/workflows/validate_ingresses.yaml | 5 ++++- 4 files changed, 16 insertions(+), 4 deletions(-) diff --git a/.github/workflows/apply_ingresses.yaml b/.github/workflows/apply_ingresses.yaml index cbaeffe..0b1d041 100644 --- a/.github/workflows/apply_ingresses.yaml +++ b/.github/workflows/apply_ingresses.yaml @@ -17,10 +17,13 @@ jobs: 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@v4.0.0 with: - creds: '${{ secrets.AZURE_AKS }}' cluster-name: microservices resource-group: kubernetes diff --git a/.github/workflows/deploy_nginx_production.yaml b/.github/workflows/deploy_nginx_production.yaml index 78d9845..6c8658f 100644 --- a/.github/workflows/deploy_nginx_production.yaml +++ b/.github/workflows/deploy_nginx_production.yaml @@ -13,10 +13,13 @@ jobs: - name: Checkout 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@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 5be6ec0..01f2a16 100644 --- a/.github/workflows/deploy_nginx_staging.yaml +++ b/.github/workflows/deploy_nginx_staging.yaml @@ -74,10 +74,13 @@ 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@v4.0.0 with: - creds: '${{ secrets.AZURE_AKS }}' cluster-name: microservices resource-group: kubernetes diff --git a/.github/workflows/validate_ingresses.yaml b/.github/workflows/validate_ingresses.yaml index e19654d..e302add 100644 --- a/.github/workflows/validate_ingresses.yaml +++ b/.github/workflows/validate_ingresses.yaml @@ -15,10 +15,13 @@ jobs: 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@v4.0.0 with: - creds: '${{ secrets.AZURE_AKS }}' cluster-name: microservices resource-group: kubernetes