mirror of https://gitee.com/answerdev/answer.git
update github action
This commit is contained in:
parent
54497ed932
commit
2e77289428
|
@ -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
|
||||
|
|
|
@ -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 }}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue