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

aichy1262e77289428ae
diff --git a/.github/Dockerfile b/.github/Dockerfile
index ea9be884..21377fde 100644
--- a/.github/Dockerfile
+++ b/.github/Dockerfile
@@ -25,9 +25,11 @@ ARG CGO_EXTRA_CFLAGS
COPY . ${BUILD_DIR}
WORKDIR ${BUILD_DIR}
COPY --from=node-builder /tmp/build ${BUILD_DIR}/ui/build
-RUN apk --no-cache add build-base git \
- && make clean build \
- && cp answer /usr/bin/answer
+RUN apk --no-cache add build-base git bash \
+ && make clean build
+RUN chmod 755 answer
+RUN ["/bin/bash","-c","script/build_plugin.sh"]
+RUN cp answer /usr/bin/answer
RUN mkdir -p /data/uploads && chmod 777 /data/uploads \
&& mkdir -p /data/i18n && cp -r i18n/*.yaml /data/i18n
diff --git a/.github/workflows/manual_build.yml b/.github/workflows/manual_build.yml
index 2e7f968f..9ac73c79 100644
--- a/.github/workflows/manual_build.yml
+++ b/.github/workflows/manual_build.yml
@@ -3,6 +3,10 @@ name: Manual Build DockerHub Image
on:
workflow_dispatch:
inputs:
+ tag_name:
+ type: string
+ required: true
+ description: 'DockerHub img tag name'
logLevel:
description: 'Log level'
required: true
@@ -18,6 +22,7 @@ on:
type: boolean
+
jobs:
build:
runs-on: ubuntu-latest
@@ -60,7 +65,7 @@ jobs:
platforms: linux/amd64,linux/arm64
push: true
file: ./.github/Dockerfile
- tags: ${{ steps.meta.outputs.tags }}
+ tags: ${{ inputs.tag_name }}
labels: ${{ steps.meta.outputs.labels }}