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.
action
aichy12605110e13bff6
diff --git a/.github/workflows/build_dev_img.yml b/.github/workflows/build_dev_img.ymlnew file mode 100644index 00000000..559cffc8--- /dev/null+++ b/.github/workflows/build_dev_img.yml@@ -0,0 +1,62 @@+name: Build Dev Image++on:+ push:+ branches: [ "test","githubaction" ]+ tags:+ - "v*.*.*"++jobs:+ build:+ name: Build and Push+ runs-on: [self-hosted,linux]+ steps:+ - name: Checkout+ uses: actions/checkout@v3++ - name: Docker meta+ id: meta+ uses: docker/metadata-action@v4+ with:+ images: ${{ secrets.IMG_URL }}/${{ secrets.IMG_NAMESPACE }}/answer+ tags: |+ type=raw,value=latest+++ - name: Set up QEMU+ uses: docker/setup-qemu-action@v2++ - name: Set up Docker Buildx+ uses: docker/setup-buildx-action@v2++ - name: Login to Container Registry+ uses: docker/login-action@v2+ with:+ registry: ${{ secrets.IMG_URL }}+ username: ${{ secrets.IMG_USERNAME }}+ password: ${{ secrets.IMG_PASSWORD }}+++ - name: Build and push+ uses: docker/build-push-action@v4+ with:+ context: .+ platforms: linux/amd64+ push: true+ tags: ${{ steps.meta.outputs.tags }}+ labels: ${{ steps.meta.outputs.labels }}++ sync-git:+ name: Sync to Git+ runs-on: [self-hosted,linux]+ needs:+ - build+ steps:+ - name: Sync to Gitlab+ uses: wearerequired/git-mirror-action@master+ env:+ SSH_PRIVATE_KEY: ${{ secrets.GITLAB_RSA_PRIVATE_KEY }}+ with:+ source-repo: [email protected]:answerdev/answer.git+ destination-repo: ${{ secrets.GITLAB_REPO }}+diff --git a/.github/workflows/build_dockerhub_img.yml b/.github/workflows/build_dockerhub_img.ymlindex 1cec6b70..52f96621 100644--- a/.github/workflows/build_dockerhub_img.yml+++ b/.github/workflows/build_dockerhub_img.yml@@ -2,7 +2,7 @@ name: Build DockerHub Imageon:push:- branches: [ "main","githubaction","test" ]+ branches: [ "main"]tags:- v2.*- v1.*diff --git a/.github/workflows/go_build_test.yml b/.github/workflows/go_build_test.ymlindex c3642487..aaac41ef 100644--- a/.github/workflows/go_build_test.yml+++ b/.github/workflows/go_build_test.yml@@ -1,8 +1,6 @@name: Go Build Teston:- push:- branches: [ "main","githubaction","test" ]pull_request:branches: [ "main" ]diff --git a/.github/workflows/node_build_test.yml b/.github/workflows/node_build_test.ymlindex 83639c78..202a263b 100644--- a/.github/workflows/node_build_test.yml+++ b/.github/workflows/node_build_test.yml@@ -1,8 +1,6 @@name: Node Build Teston:- push:- branches: [ "main","githubaction","test"]pull_request:branches: [ "main" ]