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}
|
COPY . ${BUILD_DIR}
|
||||||
WORKDIR ${BUILD_DIR}
|
WORKDIR ${BUILD_DIR}
|
||||||
COPY --from=node-builder /tmp/build ${BUILD_DIR}/ui/build
|
COPY --from=node-builder /tmp/build ${BUILD_DIR}/ui/build
|
||||||
RUN apk --no-cache add build-base git \
|
RUN apk --no-cache add build-base git bash \
|
||||||
&& make clean build \
|
&& make clean build
|
||||||
&& cp answer /usr/bin/answer
|
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 \
|
RUN mkdir -p /data/uploads && chmod 777 /data/uploads \
|
||||||
&& mkdir -p /data/i18n && cp -r i18n/*.yaml /data/i18n
|
&& mkdir -p /data/i18n && cp -r i18n/*.yaml /data/i18n
|
||||||
|
|
|
@ -3,6 +3,10 @@ name: Manual Build DockerHub Image
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
|
tag_name:
|
||||||
|
type: string
|
||||||
|
required: true
|
||||||
|
description: 'DockerHub img tag name'
|
||||||
logLevel:
|
logLevel:
|
||||||
description: 'Log level'
|
description: 'Log level'
|
||||||
required: true
|
required: true
|
||||||
|
@ -18,6 +22,7 @@ on:
|
||||||
type: boolean
|
type: boolean
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -60,7 +65,7 @@ jobs:
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
push: true
|
push: true
|
||||||
file: ./.github/Dockerfile
|
file: ./.github/Dockerfile
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ inputs.tag_name }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue