上传文件至 /
This commit is contained in:
commit
0cf41579d7
|
|
@ -0,0 +1,12 @@
|
|||
FROM alpine
|
||||
|
||||
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
|
||||
|
||||
RUN apk update
|
||||
RUN apk add zip
|
||||
|
||||
COPY entrypoint.sh /bin/entrypoint.sh
|
||||
|
||||
RUN chmod +x /bin/entrypoint.sh
|
||||
|
||||
ENTRYPOINT /bin/entrypoint.sh
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
name: zip
|
||||
description: zip
|
||||
author: qxa
|
||||
|
||||
inputs:
|
||||
work_space:
|
||||
description: work space
|
||||
required: false
|
||||
default: .
|
||||
src:
|
||||
description: src path
|
||||
required: false
|
||||
default: .
|
||||
target:
|
||||
description: 输出文件
|
||||
required: true
|
||||
|
||||
runs:
|
||||
using: docker
|
||||
image: Dockerfile
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
env
|
||||
|
||||
cd $INPUT_WORK_SPACE
|
||||
|
||||
zip -r $INPUT_TARGET $INPUT_SRC
|
||||
|
||||
ls -al
|
||||
Loading…
Reference in New Issue