You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@answer.apache.org by li...@apache.org on 2026/05/20 06:27:05 UTC

(answer) branch main updated (5be5c84a -> 48b4622a)

This is an automated email from the ASF dual-hosted git repository.

LinkinStars pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/answer.git


    from 5be5c84a chore: update version to 2.0.1
     new 84204a71 chore: update GitHub Actions to use latest versions of setup actions
     new 2a442d33 chore: update Docker actions to latest versions for improved stability
     new 48b4622a chore: update Docker actions to specific versions for consistency

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .github/workflows/build-binary-for-release.yml       | 15 ++++++++-------
 .github/workflows/build-image-for-latest-release.yml | 12 +++++-------
 .github/workflows/build-image-for-manual.yml         | 10 +++++-----
 .github/workflows/build-image-for-release.yml        | 12 +++++-------
 .github/workflows/build-image-for-test.yml           | 10 +++++-----
 5 files changed, 28 insertions(+), 31 deletions(-)


(answer) 01/03: chore: update GitHub Actions to use latest versions of setup actions

Posted by li...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

LinkinStars pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/answer.git

commit 84204a718ae7e657aee0afc3013d5d9acd8806de
Author: LinkinStars <li...@foxmail.com>
AuthorDate: Wed May 20 11:42:35 2026 +0800

    chore: update GitHub Actions to use latest versions of setup actions
---
 .github/workflows/build-binary-for-release.yml       | 6 +++---
 .github/workflows/build-image-for-latest-release.yml | 9 ++++-----
 .github/workflows/build-image-for-manual.yml         | 8 ++++----
 .github/workflows/build-image-for-release.yml        | 9 ++++-----
 .github/workflows/build-image-for-test.yml           | 8 ++++----
 5 files changed, 19 insertions(+), 21 deletions(-)

diff --git a/.github/workflows/build-binary-for-release.yml b/.github/workflows/build-binary-for-release.yml
index 49c53051..864f9e4f 100644
--- a/.github/workflows/build-binary-for-release.yml
+++ b/.github/workflows/build-binary-for-release.yml
@@ -34,7 +34,7 @@ jobs:
       uses: actions/checkout@v4
 
     - name: Set up Node
-      uses: actions/setup-node@v3
+      uses: actions/setup-node@v4
       with:
         node-version: 20.18.1
 
@@ -42,11 +42,11 @@ jobs:
       run: make install-ui-packages ui
 
     - name: Setup Go
-      uses: actions/setup-go@v3
+      uses: actions/setup-go@v5
       with:
         go-version: 1.23
     - name: Run GoReleaser
-      uses: goreleaser/goreleaser-action@v4
+      uses: goreleaser/goreleaser-action@v6
       with:
         distribution: goreleaser
         version: latest
diff --git a/.github/workflows/build-image-for-latest-release.yml b/.github/workflows/build-image-for-latest-release.yml
index b45e28ef..5ee505be 100644
--- a/.github/workflows/build-image-for-latest-release.yml
+++ b/.github/workflows/build-image-for-latest-release.yml
@@ -37,17 +37,17 @@ jobs:
 
     - name: Docker meta
       id: meta
-      uses: docker/metadata-action@v4
+      uses: docker/metadata-action@v5
       with:
         images: apache/answer
         tags: |
           type=raw,value=latest
 
     - 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 DockerHub
       uses: docker/login-action@v3
@@ -56,7 +56,7 @@ jobs:
         password: ${{ secrets.DOCKERHUB_TOKEN }}
 
     - name: Build and push
-      uses: docker/build-push-action@v4
+      uses: docker/build-push-action@v6
       with:
         context: .
         platforms: linux/amd64,linux/arm64
@@ -65,4 +65,3 @@ jobs:
         tags: ${{ steps.meta.outputs.tags }}
         labels: ${{ steps.meta.outputs.labels }}
 
-
diff --git a/.github/workflows/build-image-for-manual.yml b/.github/workflows/build-image-for-manual.yml
index 4a461b6e..ea4f88aa 100644
--- a/.github/workflows/build-image-for-manual.yml
+++ b/.github/workflows/build-image-for-manual.yml
@@ -35,7 +35,7 @@ jobs:
 
     - name: Docker meta
       id: meta
-      uses: docker/metadata-action@v4
+      uses: docker/metadata-action@v5
       with:
         images: apache/answer
         tags: |
@@ -43,10 +43,10 @@ jobs:
           type=semver,pattern={{version}}
 
     - 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 DockerHub
       uses: docker/login-action@v3
@@ -55,7 +55,7 @@ jobs:
         password: ${{ secrets.DOCKERHUB_TOKEN }}
 
     - name: Build and push
-      uses: docker/build-push-action@v4
+      uses: docker/build-push-action@v6
       with:
         context: .
         platforms: linux/amd64,linux/arm64
diff --git a/.github/workflows/build-image-for-release.yml b/.github/workflows/build-image-for-release.yml
index fdbf95cd..f6327603 100644
--- a/.github/workflows/build-image-for-release.yml
+++ b/.github/workflows/build-image-for-release.yml
@@ -36,7 +36,7 @@ jobs:
 
     - name: Docker meta
       id: meta
-      uses: docker/metadata-action@v4
+      uses: docker/metadata-action@v5
       with:
         images: apache/answer
         tags: |
@@ -44,10 +44,10 @@ jobs:
           type=semver,pattern={{version}}
 
     - 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 DockerHub
       uses: docker/login-action@v3
@@ -56,7 +56,7 @@ jobs:
         password: ${{ secrets.DOCKERHUB_TOKEN }}
 
     - name: Build and push
-      uses: docker/build-push-action@v4
+      uses: docker/build-push-action@v6
       with:
         context: .
         platforms: linux/amd64,linux/arm64
@@ -65,4 +65,3 @@ jobs:
         tags: ${{ steps.meta.outputs.tags }}
         labels: ${{ steps.meta.outputs.labels }}
 
-
diff --git a/.github/workflows/build-image-for-test.yml b/.github/workflows/build-image-for-test.yml
index c3f438f6..c8dbb45b 100644
--- a/.github/workflows/build-image-for-test.yml
+++ b/.github/workflows/build-image-for-test.yml
@@ -32,17 +32,17 @@ jobs:
 
     - name: Docker meta
       id: meta
-      uses: docker/metadata-action@v4
+      uses: docker/metadata-action@v5
       with:
         images: apache/answer
         tags: |
           type=raw,value=test
 
     - 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 DockerHub
       uses: docker/login-action@v3
@@ -51,7 +51,7 @@ jobs:
         password: ${{ secrets.DOCKERHUB_TOKEN }}
 
     - name: Build and push
-      uses: docker/build-push-action@v4
+      uses: docker/build-push-action@v6
       with:
         context: .
         file: ./Dockerfile


(answer) 03/03: chore: update Docker actions to specific versions for consistency

Posted by li...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

LinkinStars pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/answer.git

commit 48b4622aca60a8ddd230d5cca9304127cb3c0d9c
Author: LinkinStars <li...@foxmail.com>
AuthorDate: Wed May 20 12:09:59 2026 +0800

    chore: update Docker actions to specific versions for consistency
---
 .github/workflows/build-binary-for-release.yml       | 11 ++++++-----
 .github/workflows/build-image-for-latest-release.yml | 11 +++++------
 .github/workflows/build-image-for-manual.yml         | 10 +++++-----
 .github/workflows/build-image-for-release.yml        | 11 +++++------
 4 files changed, 21 insertions(+), 22 deletions(-)

diff --git a/.github/workflows/build-binary-for-release.yml b/.github/workflows/build-binary-for-release.yml
index 864f9e4f..2bce6714 100644
--- a/.github/workflows/build-binary-for-release.yml
+++ b/.github/workflows/build-binary-for-release.yml
@@ -45,12 +45,13 @@ jobs:
       uses: actions/setup-go@v5
       with:
         go-version: 1.23
+
+    - name: Install GoReleaser
+      run: go install github.com/goreleaser/goreleaser/v2@latest
+
     - name: Run GoReleaser
-      uses: goreleaser/goreleaser-action@v6
-      with:
-        distribution: goreleaser
-        version: latest
-        args: release --clean --skip=validate
+      run: |
+        "$(go env GOPATH)/bin/goreleaser" release --clean --skip=validate
       env:
         GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
     - uses: actions/upload-artifact@v4
diff --git a/.github/workflows/build-image-for-latest-release.yml b/.github/workflows/build-image-for-latest-release.yml
index 5ee505be..315d7fef 100644
--- a/.github/workflows/build-image-for-latest-release.yml
+++ b/.github/workflows/build-image-for-latest-release.yml
@@ -37,26 +37,26 @@ jobs:
 
     - name: Docker meta
       id: meta
-      uses: docker/metadata-action@v5
+      uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5.10.0
       with:
         images: apache/answer
         tags: |
           type=raw,value=latest
 
     - name: Set up QEMU
-      uses: docker/setup-qemu-action@v3
+      uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
 
     - name: Set up Docker Buildx
-      uses: docker/setup-buildx-action@v3
+      uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
 
     - name: Login to DockerHub
-      uses: docker/login-action@v3
+      uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
       with:
         username: ${{ secrets.DOCKERHUB_USER }}
         password: ${{ secrets.DOCKERHUB_TOKEN }}
 
     - name: Build and push
-      uses: docker/build-push-action@v6
+      uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2
       with:
         context: .
         platforms: linux/amd64,linux/arm64
@@ -64,4 +64,3 @@ jobs:
         file: ./Dockerfile
         tags: ${{ steps.meta.outputs.tags }}
         labels: ${{ steps.meta.outputs.labels }}
-
diff --git a/.github/workflows/build-image-for-manual.yml b/.github/workflows/build-image-for-manual.yml
index ea4f88aa..8ccf7b4f 100644
--- a/.github/workflows/build-image-for-manual.yml
+++ b/.github/workflows/build-image-for-manual.yml
@@ -35,7 +35,7 @@ jobs:
 
     - name: Docker meta
       id: meta
-      uses: docker/metadata-action@v5
+      uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5.10.0
       with:
         images: apache/answer
         tags: |
@@ -43,19 +43,19 @@ jobs:
           type=semver,pattern={{version}}
 
     - name: Set up QEMU
-      uses: docker/setup-qemu-action@v3
+      uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
 
     - name: Set up Docker Buildx
-      uses: docker/setup-buildx-action@v3
+      uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
 
     - name: Login to DockerHub
-      uses: docker/login-action@v3
+      uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
       with:
         username: ${{ secrets.DOCKERHUB_USER }}
         password: ${{ secrets.DOCKERHUB_TOKEN }}
 
     - name: Build and push
-      uses: docker/build-push-action@v6
+      uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2
       with:
         context: .
         platforms: linux/amd64,linux/arm64
diff --git a/.github/workflows/build-image-for-release.yml b/.github/workflows/build-image-for-release.yml
index f6327603..da839047 100644
--- a/.github/workflows/build-image-for-release.yml
+++ b/.github/workflows/build-image-for-release.yml
@@ -36,7 +36,7 @@ jobs:
 
     - name: Docker meta
       id: meta
-      uses: docker/metadata-action@v5
+      uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5.10.0
       with:
         images: apache/answer
         tags: |
@@ -44,19 +44,19 @@ jobs:
           type=semver,pattern={{version}}
 
     - name: Set up QEMU
-      uses: docker/setup-qemu-action@v3
+      uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
 
     - name: Set up Docker Buildx
-      uses: docker/setup-buildx-action@v3
+      uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
 
     - name: Login to DockerHub
-      uses: docker/login-action@v3
+      uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
       with:
         username: ${{ secrets.DOCKERHUB_USER }}
         password: ${{ secrets.DOCKERHUB_TOKEN }}
 
     - name: Build and push
-      uses: docker/build-push-action@v6
+      uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2
       with:
         context: .
         platforms: linux/amd64,linux/arm64
@@ -64,4 +64,3 @@ jobs:
         file: ./Dockerfile
         tags: ${{ steps.meta.outputs.tags }}
         labels: ${{ steps.meta.outputs.labels }}
-


(answer) 02/03: chore: update Docker actions to latest versions for improved stability

Posted by li...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

LinkinStars pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/answer.git

commit 2a442d333cca27bd9a87601c927a8e3be7503987
Author: LinkinStars <li...@foxmail.com>
AuthorDate: Wed May 20 12:02:09 2026 +0800

    chore: update Docker actions to latest versions for improved stability
---
 .github/workflows/build-image-for-test.yml | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/.github/workflows/build-image-for-test.yml b/.github/workflows/build-image-for-test.yml
index c8dbb45b..b90a1ac4 100644
--- a/.github/workflows/build-image-for-test.yml
+++ b/.github/workflows/build-image-for-test.yml
@@ -32,26 +32,26 @@ jobs:
 
     - name: Docker meta
       id: meta
-      uses: docker/metadata-action@v5
+      uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5.10.0
       with:
         images: apache/answer
         tags: |
           type=raw,value=test
 
     - name: Set up QEMU
-      uses: docker/setup-qemu-action@v3
+      uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
 
     - name: Set up Docker Buildx
-      uses: docker/setup-buildx-action@v3
+      uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
 
     - name: Login to DockerHub
-      uses: docker/login-action@v3
+      uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
       with:
         username: ${{ secrets.DOCKERHUB_USER }}
         password: ${{ secrets.DOCKERHUB_TOKEN }}
 
     - name: Build and push
-      uses: docker/build-push-action@v6
+      uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2
       with:
         context: .
         file: ./Dockerfile