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.

update github action Dockerfile

aichy1267e1ca07065d1
diff --git a/.github/workflows/build_dev_img.yml b/.github/workflows/build_dev_img.yml
index e57d3cb7..e03df096 100644
--- a/.github/workflows/build_dev_img.yml
+++ b/.github/workflows/build_dev_img.yml
@@ -40,7 +40,7 @@ jobs:
uses: docker/build-push-action@v4
with:
context: .
- file: ./.github/Dockerfile
+ file: ./Dockerfile
platforms: linux/amd64
push: true
tags: ${{ steps.meta.outputs.tags }}
diff --git a/.github/workflows/build_dockerhub_img.yml b/.github/workflows/build_dockerhub_img.yml
index 52f96621..9d5e5c44 100644
--- a/.github/workflows/build_dockerhub_img.yml
+++ b/.github/workflows/build_dockerhub_img.yml
@@ -39,20 +39,13 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- # - name: Login to GitHub Container Registry
- # uses: docker/login-action@v2
- # with:
- # registry: ghcr.io
- # username: ${{ github.actor }}
- # password: ${{ secrets.GITHUB_TOKEN }}
-
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
- file: ./.github/Dockerfile
+ file: ./Dockerfile
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
diff --git a/.github/workflows/manual_build.yml b/.github/workflows/manual_build.yml
index 9bcda245..daacb0cf 100644
--- a/.github/workflows/manual_build.yml
+++ b/.github/workflows/manual_build.yml
@@ -51,20 +51,13 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- # - name: Login to GitHub Container Registry
- # uses: docker/login-action@v2
- # with:
- # registry: ghcr.io
- # username: ${{ github.actor }}
- # password: ${{ secrets.GITHUB_TOKEN }}
-
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
- file: ./.github/Dockerfile
+ file: ./Dockerfile
tags: answerdev/answer:${{ inputs.tag_name }}
labels: ${{ steps.meta.outputs.labels }}