From 0a63a062e60019594496301337ae76b72589954d Mon Sep 17 00:00:00 2001 From: wang yan Date: Fri, 21 Feb 2025 18:14:52 +0800 Subject: [PATCH] fix Signed-off-by: wang yan --- .github/workflows/build.yml | 16 ++++++++-------- .github/workflows/ci.yml | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e97663c4f..fac20e658 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,13 +17,13 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v5 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Docker meta id: meta - uses: docker/metadata-action@v3 + uses: docker/metadata-action@v5 with: images: | ${{ env.DOCKERHUB_SLUG }} @@ -46,10 +46,10 @@ jobs: org.opencontainers.image.description=The toolkit to pack, ship, store, and deliver container content - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v3 - name: Build artifacts - uses: docker/bake-action@v1 + uses: docker/bake-action@v5 with: targets: artifact-all - @@ -58,7 +58,7 @@ jobs: mv ./bin/**/* ./bin/ - name: Upload artifacts - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4.3.6 with: name: registry path: ./bin/* @@ -66,13 +66,13 @@ jobs: - name: Login to DockerHub if: github.event_name != 'pull_request' - uses: docker/login-action@v1 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Build image - uses: docker/bake-action@v1 + uses: docker/bake-action@v5 with: files: | ./docker-bake.hcl @@ -81,7 +81,7 @@ jobs: push: ${{ startsWith(github.ref, 'refs/tags/') }} - name: GitHub Release - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 if: startsWith(github.ref, 'refs/tags/') with: draft: true diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 843708cb5..a301ca473 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,13 +16,13 @@ jobs: COMMIT_RANGE: ${{ github.event_name == 'pull_request' && format('{0}..{1}',github.event.pull_request.base.sha, github.event.pull_request.head.sha) || github.sha }} steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v4 with: path: src/github.com/goharbor/distribution fetch-depth: 50 - name: Set up Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v5 with: go-version: 1.20.10