Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

ci(github): update docker user and token secrets

LinkinStars274eaf29cf1f
diff --git a/.github/workflows/build-image-for-release.yml b/.github/workflows/build-image-for-release.yml
index 6495f2d6..a4ad5ff1 100644
--- a/.github/workflows/build-image-for-release.yml
+++ b/.github/workflows/build-image-for-release.yml
@@ -53,8 +53,8 @@ jobs:
- name: Login to DockerHub
uses: docker/login-action@v2
with:
- username: ${{ secrets.DOCKER_USERNAME }}
- password: ${{ secrets.DOCKER_PASSWORD }}
+ username: ${{ secrets.DOCKERHUB_USER }}
+ password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
diff --git a/.github/workflows/build-image-for-test.yml b/.github/workflows/build-image-for-test.yml
index d300b284..6a099d02 100644
--- a/.github/workflows/build-image-for-test.yml
+++ b/.github/workflows/build-image-for-test.yml
@@ -46,8 +46,8 @@ jobs:
- name: Login to DockerHub
uses: docker/login-action@v2
with:
- username: ${{ secrets.DOCKER_USERNAME }}
- password: ${{ secrets.DOCKER_PASSWORD }}
+ username: ${{ secrets.DOCKERHUB_USER }}
+ password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4