From 06ce9705b49898a1f48b57027359d88c395c19de Mon Sep 17 00:00:00 2001 From: Szilard Parrag Date: Mon, 5 Feb 2024 15:26:39 +0100 Subject: [PATCH 1/2] chore(deps): update CI workflows to use Nodejs v20 Signed-off-by: Szilard Parrag --- .github/workflows/artifacts.yaml | 8 ++++---- .github/workflows/ci.yaml | 8 ++++---- .github/workflows/e2e.yaml | 24 ++++++++++++------------ 3 files changed, 20 insertions(+), 20 deletions(-) diff --git a/.github/workflows/artifacts.yaml b/.github/workflows/artifacts.yaml index 2b8cdd3c..f482293c 100644 --- a/.github/workflows/artifacts.yaml +++ b/.github/workflows/artifacts.yaml @@ -63,7 +63,7 @@ jobs: - name: Gather build metadata id: meta - uses: docker/metadata-action@818d4b7b91585d195f67373fd9cb0332e31a7175 # v4.6.0 + uses: docker/metadata-action@v5 with: images: ${{ steps.image-name.outputs.value }} flavor: | @@ -83,7 +83,7 @@ jobs: # Multiple exporters are not supported yet # See https://github.com/moby/buildkit/pull/2760 - name: Determine build output - uses: haya14busa/action-cond@1d6e8a12b20cdb4f1954feef9aa475b9c390cab5 # v1.1.1 + uses: haya14busa/action-cond@v1.2.1 id: build-output with: cond: ${{ inputs.publish }} @@ -100,7 +100,7 @@ jobs: - name: Build and push image id: build - uses: docker/build-push-action@2eb1c1961a95fc15694676618e422e8ba1d63825 # v4.1.1 + uses: docker/build-push-action@v5 # v4.1.1 with: context: . platforms: linux/amd64,linux/arm64 @@ -132,7 +132,7 @@ jobs: output: trivy-results.sarif - name: Upload Trivy scan results as artifact - uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3 + uses: actions/upload-artifact@v4 with: name: "[${{ github.job }}] Trivy scan results" path: trivy-results.sarif diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index b6f29baa..92fd04d1 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -18,7 +18,7 @@ jobs: uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version: '1.21' @@ -37,7 +37,7 @@ jobs: uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version: '1.21' @@ -55,12 +55,12 @@ jobs: uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version: '1.21' - name: Cache licenses - uses: actions/cache@v3 + uses: actions/cache@v4 with: key: licensei-v2-${{ hashFiles('go.sum') }} path: | diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index 5d8f9815..36d5edb5 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -20,7 +20,7 @@ jobs: uses: actions/checkout@v4 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Build and export uses: docker/build-push-action@v4 @@ -32,7 +32,7 @@ jobs: outputs: type=docker,dest=/tmp/controller.tar - name: Upload artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: controller path: /tmp/controller.tar @@ -49,10 +49,10 @@ jobs: steps: - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Download artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: controller path: /tmp @@ -63,12 +63,12 @@ jobs: docker image ls -a - name: Set up Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version: ${{ env.GO_VERSION }} - name: Set up kubectl - uses: azure/setup-kubectl@v3 + uses: azure/setup-kubectl@v4.0.0 with: version: ${{ env.KUBECTL_VERSION }} @@ -83,7 +83,7 @@ jobs: - name: Archive Test Results if: always() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: go-e2e-test-cluster-logs path: build/_test @@ -100,10 +100,10 @@ jobs: steps: - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Download artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: controller path: /tmp @@ -114,12 +114,12 @@ jobs: docker image ls -a - name: Set up kubectl - uses: azure/setup-kubectl@v3 + uses: azure/setup-kubectl@v4.0.0 with: version: ${{ env.KUBECTL_VERSION }} - name: Set up Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version: ${{ env.GO_VERSION }} @@ -159,7 +159,7 @@ jobs: - name: Archive Test Results if: always() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: script-e2e-test-cluster-logs path: build/_test From 45acef611a9b2007f3dea63f20cdaa3b7f1b7843 Mon Sep 17 00:00:00 2001 From: Szilard Parrag Date: Fri, 9 Feb 2024 10:08:08 +0100 Subject: [PATCH 2/2] fix(CI): followup on upload-artifact@v4's changes Signed-off-by: Szilard Parrag --- .github/workflows/e2e.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index 36d5edb5..b1a7435f 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -161,6 +161,6 @@ jobs: if: always() uses: actions/upload-artifact@v4 with: - name: script-e2e-test-cluster-logs + name: script-e2e-test-cluster-logs-${{ matrix.kube }} path: build/_test retention-days: 5