上传文件至 /

This commit is contained in:
qxa 2024-03-05 14:44:26 +08:00
commit 0cf41579d7
3 changed files with 39 additions and 0 deletions

12
Dockerfile Normal file
View File

@ -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

20
action.yaml Normal file
View File

@ -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

7
entrypoint.sh Normal file
View File

@ -0,0 +1,7 @@
env
cd $INPUT_WORK_SPACE
zip -r $INPUT_TARGET $INPUT_SRC
ls -al