From a151c701036b35479baef1dd5e3da87e582127e0 Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Thu, 28 Dec 2023 21:36:33 -0500 Subject: [PATCH] feat: bump action dependencies to use node20 runtime (#256) --- .github/workflows/cd.yaml | 24 ++++++++++++------------ .github/workflows/ci.yaml | 4 ++-- .github/workflows/issue.yaml | 2 +- .github/workflows/nightly.yaml | 4 ++-- .github/workflows/release.yml | 14 +++++++------- 5 files changed, 24 insertions(+), 24 deletions(-) diff --git a/.github/workflows/cd.yaml b/.github/workflows/cd.yaml index b3a97b367..7d6eb293d 100644 --- a/.github/workflows/cd.yaml +++ b/.github/workflows/cd.yaml @@ -20,7 +20,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Set up Go - uses: actions/setup-go@v1 + uses: actions/setup-go@v5 with: go-version: "1.21" id: go @@ -35,7 +35,7 @@ jobs: ${{ runner.os }}-go- - name: Check out code into the Go module directory - uses: actions/checkout@v1 + uses: actions/checkout@v4 - name: tidy run: make tidy @@ -50,7 +50,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Set up Go - uses: actions/setup-go@v1 + uses: actions/setup-go@v5 with: go-version: "1.21" id: go @@ -65,7 +65,7 @@ jobs: ${{ runner.os }}-go- - name: Check out code into the Go module directory - uses: actions/checkout@v1 + uses: actions/checkout@v4 - name: build run: | @@ -77,7 +77,7 @@ jobs: cp ./build/Dockerfile /tmp/ehco/Dockerfile - name: Upload binaries - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: binaries path: /tmp/ehco @@ -95,7 +95,7 @@ jobs: platform: [amd64, arm64] steps: - name: Download binaries - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: binaries path: /tmp/ehco @@ -104,19 +104,19 @@ jobs: cp /tmp/ehco/ehco-${{ matrix.platform }} /tmp/ehco/ehco - name: Set up qemu - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Login to Docker Hub - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - name: Build multi-platform image - uses: docker/build-push-action@v4 + uses: docker/build-push-action@v5 id: build with: context: /tmp/ehco @@ -131,7 +131,7 @@ jobs: digest="${{ steps.build.outputs.digest }}" touch "/tmp/digests/${digest#sha256:}" - name: Upload digest - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: digests path: /tmp/digests/* @@ -144,7 +144,7 @@ jobs: - build-image steps: - name: Download digests - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: digests path: /tmp/digests diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 15bb8d685..537944428 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -20,7 +20,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Set up Go - uses: actions/setup-go@v1 + uses: actions/setup-go@v5 with: go-version: "1.21" id: go @@ -35,7 +35,7 @@ jobs: ${{ runner.os }}-go- - name: Check out code into the Go module directory - uses: actions/checkout@v1 + uses: actions/checkout@v4 - name: tidy run: make tidy diff --git a/.github/workflows/issue.yaml b/.github/workflows/issue.yaml index 7a5981a63..4905cde35 100644 --- a/.github/workflows/issue.yaml +++ b/.github/workflows/issue.yaml @@ -7,6 +7,6 @@ jobs: stale: runs-on: ubuntu-latest steps: - - uses: actions/stale@v5 + - uses: actions/stale@v9 with: exempt-all-pr-assignees: true diff --git a/.github/workflows/nightly.yaml b/.github/workflows/nightly.yaml index 33c86b70d..f113f0983 100644 --- a/.github/workflows/nightly.yaml +++ b/.github/workflows/nightly.yaml @@ -10,7 +10,7 @@ jobs: name: nightly-build runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup Golang with cache id: golang-with-cache uses: magnetikonline/action-golang-cache@v4 @@ -31,4 +31,4 @@ jobs: release_name: nightly goversion: "1.21.1" overwrite: true - retry: 10 \ No newline at end of file + retry: 10 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5e14692f4..e56b49c16 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,13 +14,13 @@ jobs: steps: - uses: actions/checkout@master - name: set up qemu - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Login to Docker Hub - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} @@ -30,7 +30,7 @@ jobs: run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT - name: Build multi-platform image - uses: docker/build-push-action@v4 + uses: docker/build-push-action@v5 with: context: . tags: "ehco1996/ehco:${{ steps.vars.outputs.tag }}" @@ -42,19 +42,19 @@ jobs: runs-on: ubuntu-latest steps: - name: Set up Go - uses: actions/setup-go@v1 + uses: actions/setup-go@v5 with: go-version: "1.21" id: go - name: Check out code into the Go module directory - uses: actions/checkout@v1 + uses: actions/checkout@v4 - name: Get dependencies run: go mod download - name: GoReleaser Action - uses: goreleaser/goreleaser-action@v2 + uses: goreleaser/goreleaser-action@v5 with: version: latest args: release