From fa14ff8f365f1db7c521ea9cdfb75cb8e0ee985f Mon Sep 17 00:00:00 2001 From: Eng Zer Jun Date: Wed, 4 Dec 2024 00:48:52 +0800 Subject: [PATCH] ci: update `upload-artifact` and `download-artifact` actions to v4 (#5212) v3 of `actions/upload-artifact` and `actions/download-artifact` will be fully deprecated by 5 December 2024. Jobs that are scheduled to run during the brownout periods will also fail. See [1][2]. [1]: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/ [2]: https://github.blog/changelog/2024-11-05-notice-of-breaking-changes-for-github-actions/ Signed-off-by: Eng Zer Jun --- .github/workflows/ci-patch-image.yml | 10 +++++----- .github/workflows/cloud-release.yml | 4 ++-- .github/workflows/cloud.yml | 2 +- .github/workflows/controllers.yml | 2 +- .github/workflows/e2e_k3s_multi_node.yml | 8 ++++---- .github/workflows/e2e_k8s_multi_node.yml | 8 ++++---- .github/workflows/e2e_test_core.yml | 8 ++++---- .github/workflows/e2e_test_core_k3s.yml | 8 ++++---- .github/workflows/e2e_test_image_cri_shim.yml | 6 +++--- .github/workflows/frontend.yml | 2 +- .github/workflows/import-patch-image.yml | 14 +++++++------- .github/workflows/import-save-sealos.yml | 2 +- .github/workflows/objectstorage.yaml | 2 +- .github/workflows/services.yml | 2 +- 14 files changed, 39 insertions(+), 39 deletions(-) diff --git a/.github/workflows/ci-patch-image.yml b/.github/workflows/ci-patch-image.yml index bc84e30d3d2..8af5a4a97f8 100755 --- a/.github/workflows/ci-patch-image.yml +++ b/.github/workflows/ci-patch-image.yml @@ -70,13 +70,13 @@ jobs: password: ${{ secrets.GH_PAT }} - name: Download sealos - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: sealos-amd64 path: docker/sealos/bin/sealos-amd64 - name: Download sealos - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: sealos-arm64 path: docker/sealos/bin/sealos-arm64 @@ -146,7 +146,7 @@ jobs: - name: Checkout uses: actions/checkout@v3 - name: Download sealos - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: sealos path: /tmp/ @@ -159,12 +159,12 @@ jobs: uses: rlespinasse/git-commit-data-action@v1 - name: Download amd64 patch image tar - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: patch-image-amd64.tar path: /tmp/sealos/images/ - name: Download arm64 patch image tar - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: patch-image-arm64.tar path: /tmp/sealos/images/ diff --git a/.github/workflows/cloud-release.yml b/.github/workflows/cloud-release.yml index 4d8c3454548..62abd42f4b0 100644 --- a/.github/workflows/cloud-release.yml +++ b/.github/workflows/cloud-release.yml @@ -75,7 +75,7 @@ jobs: - name: Checkout uses: actions/checkout@v3 - name: Download sealos - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: sealos path: /tmp/ @@ -114,7 +114,7 @@ jobs: - name: Checkout uses: actions/checkout@v3 - name: Download sealos - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: sealos path: /tmp/ diff --git a/.github/workflows/cloud.yml b/.github/workflows/cloud.yml index c93b648025b..4f4e60d0c64 100644 --- a/.github/workflows/cloud.yml +++ b/.github/workflows/cloud.yml @@ -85,7 +85,7 @@ jobs: bash ./scripts/resolve-tag-image.sh "${{ inputs.push_image }}" "${{ steps.check_tag.outputs.isTag }}" "${{ inputs.push_image_tag }}" echo repo=ghcr.io/${{ github.repository_owner }}/sealos-cloud >> $GITHUB_OUTPUT - name: Download sealos - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: sealos path: /tmp/ diff --git a/.github/workflows/controllers.yml b/.github/workflows/controllers.yml index 0f846527bfc..dc63cfb5d00 100644 --- a/.github/workflows/controllers.yml +++ b/.github/workflows/controllers.yml @@ -231,7 +231,7 @@ jobs: echo latest_cluster_image=ghcr.io/${{ github.repository_owner }}/sealos-cloud-${{ matrix.module.name }}-controller:latest >> $GITHUB_OUTPUT - name: Download sealos - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: sealos path: /tmp/ diff --git a/.github/workflows/e2e_k3s_multi_node.yml b/.github/workflows/e2e_k3s_multi_node.yml index 6340f010145..da74ac52a9a 100644 --- a/.github/workflows/e2e_k3s_multi_node.yml +++ b/.github/workflows/e2e_k3s_multi_node.yml @@ -35,12 +35,12 @@ jobs: with: terraform_version: ${{ env.TERRAFORM_VERSION }} - name: Download sealos binary - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: sealos-${{ matrix.arch }} path: /tmp/sealos/bin/ - name: Download sealos - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: sealos-amd64 path: /tmp/verify/ @@ -49,12 +49,12 @@ jobs: sudo chmod a+x /tmp/verify/sealos sudo /tmp/verify/sealos version - name: Download patch image tar - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: patch-image-${{ matrix.arch }}.tar path: /tmp/sealos/images/ - name: Download e2e test - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: e2e.test path: /tmp/ diff --git a/.github/workflows/e2e_k8s_multi_node.yml b/.github/workflows/e2e_k8s_multi_node.yml index 09a3799fdc8..22bdf1478de 100644 --- a/.github/workflows/e2e_k8s_multi_node.yml +++ b/.github/workflows/e2e_k8s_multi_node.yml @@ -35,12 +35,12 @@ jobs: with: terraform_version: ${{ env.TERRAFORM_VERSION }} - name: Download sealos binary - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: sealos-${{ matrix.arch }} path: /tmp/sealos/bin/ - name: Download sealos - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: sealos-amd64 path: /tmp/verify/ @@ -49,12 +49,12 @@ jobs: sudo chmod a+x /tmp/verify/sealos sudo /tmp/verify/sealos version - name: Download patch image tar - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: patch-image-${{ matrix.arch }}.tar path: /tmp/sealos/images/ - name: Download e2e test - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: e2e.test path: /tmp/ diff --git a/.github/workflows/e2e_test_core.yml b/.github/workflows/e2e_test_core.yml index b7f1c135363..d65f056e827 100644 --- a/.github/workflows/e2e_test_core.yml +++ b/.github/workflows/e2e_test_core.yml @@ -63,22 +63,22 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Download image-cri-shim - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: image-cri-shim-amd64 path: /tmp/ - name: Download sealctl - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: sealctl-amd64 path: /tmp/ - name: Download sealos - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: sealos-amd64 path: /tmp/ - name: Download e2e test - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: e2e.test path: /tmp/ diff --git a/.github/workflows/e2e_test_core_k3s.yml b/.github/workflows/e2e_test_core_k3s.yml index 05bb5c415f4..2ef9908dd62 100644 --- a/.github/workflows/e2e_test_core_k3s.yml +++ b/.github/workflows/e2e_test_core_k3s.yml @@ -37,22 +37,22 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Download image-cri-shim - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: image-cri-shim-amd64 path: /tmp/ - name: Download sealctl - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: sealctl-amd64 path: /tmp/ - name: Download sealos - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: sealos-amd64 path: /tmp/ - name: Download e2e test - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: e2e.test path: /tmp/ diff --git a/.github/workflows/e2e_test_image_cri_shim.yml b/.github/workflows/e2e_test_image_cri_shim.yml index a4a55f1780a..89c79c698a4 100644 --- a/.github/workflows/e2e_test_image_cri_shim.yml +++ b/.github/workflows/e2e_test_image_cri_shim.yml @@ -31,12 +31,12 @@ jobs: - name: Install Dependencies run: sudo apt update && sudo apt install -y libgpgme-dev libbtrfs-dev libdevmapper-dev - name: Download image-cri-shim - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: image-cri-shim-amd64 path: /tmp/ - name: Download sealos - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: sealos-amd64 path: /tmp/ @@ -46,7 +46,7 @@ jobs: sudo mv /tmp/sealos /usr/bin/ sudo sealos version - name: Download e2e test - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: e2e.test path: /tmp/ diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml index b0bd2d59652..26e1dc806a3 100644 --- a/.github/workflows/frontend.yml +++ b/.github/workflows/frontend.yml @@ -203,7 +203,7 @@ jobs: echo latest_cluster_image=ghcr.io/${{ github.repository_owner }}/sealos-cloud-${{ env.MODULE_NAME }}-frontend:latest >> $GITHUB_OUTPUT - name: Download sealos - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: sealos path: /tmp/ diff --git a/.github/workflows/import-patch-image.yml b/.github/workflows/import-patch-image.yml index 06cfeb1c4d9..13b5ee2b0d8 100755 --- a/.github/workflows/import-patch-image.yml +++ b/.github/workflows/import-patch-image.yml @@ -93,7 +93,7 @@ jobs: run: | make build BINS=${{ matrix.binary }} PLATFORM=linux_${{ matrix.arch }} - name: Save Binaries - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ matrix.binary }}-${{ matrix.arch }} path: bin/linux_${{ matrix.arch}}/${{ matrix.binary }} @@ -123,7 +123,7 @@ jobs: go install github.com/onsi/ginkgo/v2/ginkgo cd test/e2e && ginkgo build . - name: Save E2e Test - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: e2e.test path: test/e2e/e2e.test @@ -152,25 +152,25 @@ jobs: uses: rlespinasse/git-commit-data-action@v1 - name: Download lvscare - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: lvscare-${{ matrix.arch }} path: docker/lvscare - name: Download sealctl - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: sealctl-${{ matrix.arch }} path: docker/patch - name: Download image-cri-shim - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: image-cri-shim-${{ matrix.arch }} path: docker/patch - name: Download sealos - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: sealos-${{ matrix.arch }} path: docker/sealos @@ -203,7 +203,7 @@ jobs: OWNER: ${{ github.repository_owner }} - name: Upload Cluster Images - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: patch-image-${{ matrix.arch }}.tar path: patch-${{ matrix.arch }}.tar diff --git a/.github/workflows/import-save-sealos.yml b/.github/workflows/import-save-sealos.yml index 5460ad3d3ce..cef1e648204 100755 --- a/.github/workflows/import-save-sealos.yml +++ b/.github/workflows/import-save-sealos.yml @@ -12,7 +12,7 @@ jobs: with: sealosVersion: "4.1.7" - name: Save Binaries - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: sealos path: /usr/bin/sealos diff --git a/.github/workflows/objectstorage.yaml b/.github/workflows/objectstorage.yaml index 7faf77b82a6..03b94faa913 100644 --- a/.github/workflows/objectstorage.yaml +++ b/.github/workflows/objectstorage.yaml @@ -85,7 +85,7 @@ jobs: bash ./scripts/resolve-tag-image.sh "${{ inputs.push_image }}" "${{ steps.check_tag.outputs.isTag }}" "${{ inputs.push_image_tag }}" echo repo=ghcr.io/${{ github.repository_owner }}/sealos-cloud-objectstorage >> $GITHUB_OUTPUT - name: Download sealos - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: sealos path: /tmp/ diff --git a/.github/workflows/services.yml b/.github/workflows/services.yml index 07e7803171e..8379ca47657 100644 --- a/.github/workflows/services.yml +++ b/.github/workflows/services.yml @@ -208,7 +208,7 @@ jobs: echo cluster_repo=ghcr.io/${{ github.repository_owner }}/sealos-cloud-${{ matrix.module }}-service >> $GITHUB_OUTPUT - name: Download sealos - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: sealos path: /tmp/