Skip to content

Commit

Permalink
ci: update upload-artifact and download-artifact actions to v4
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Juneezee committed Nov 17, 2024
1 parent 9769f1d commit dd631b4
Show file tree
Hide file tree
Showing 14 changed files with 39 additions and 39 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci-patch-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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/
Expand All @@ -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/
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cloud-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down Expand Up @@ -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/
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/controllers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/e2e_k3s_multi_node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand All @@ -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/
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/e2e_k8s_multi_node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand All @@ -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/
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/e2e_test_core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/e2e_test_core_k3s.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/e2e_test_image_cri_shim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand All @@ -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/
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/import-patch-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/import-save-sealos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/objectstorage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down

0 comments on commit dd631b4

Please sign in to comment.