From 2369498db23f2868a730c686feb9a37fdc2f4171 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8D=E5=BF=98=E5=88=9D=E5=BF=83?= <1624717079@qq.com> Date: Wed, 24 Aug 2022 11:20:35 +0800 Subject: [PATCH] 444423 --- Dockerfile | 7 ------- action.yml | 6 +++--- entrypoint.sh | 13 ------------- 3 files changed, 3 insertions(+), 23 deletions(-) delete mode 100644 entrypoint.sh diff --git a/Dockerfile b/Dockerfile index c9c70de..dca876c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,6 @@ # Container image that runs your code FROM alpine:3.12 -# Copies your code file from your action repository to the filesystem path `/` of the container -COPY entrypoint.sh /entrypoint.sh -# Make sure to make you entrypoint.sh file executable: -RUN chmod +x entrypoint.sh - RUN apk update \ && apk add --no-cache wget \ && wget -O upx.tar.gz http://collection.b0.upaiyun.com/softwares/upx/upx_0.3.6_linux_x86_64.tar.gz \ @@ -13,5 +8,3 @@ RUN apk update \ && mv upx /usr/local/bin/upx \ && chmod +x /usr/local/bin/upx -# Code file to execute when the docker container starts up (`entrypoint.sh`) -ENTRYPOINT ["/entrypoint.sh"] diff --git a/action.yml b/action.yml index bee3fca..b4534b5 100644 --- a/action.yml +++ b/action.yml @@ -2,13 +2,13 @@ name: 'upyun-upx-action' author: 'YaoKun ' description: 'Deploy your files to upyun using upyun-upx.' inputs: - up_bucket: + UP_BUCKET: description: '服务名' required: true - up_operator: + UP_OPERATOR: description: '操作员' required: true - up_operator_password: + UP_OPERATOR_PASSWORD: description: '操作员密码' required: true local_path: diff --git a/entrypoint.sh b/entrypoint.sh deleted file mode 100644 index 91e07a6..0000000 --- a/entrypoint.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh -l - -#set -e at the top of your script will make the script exit with an error whenever an error occurs (and is not explicitly handled) -set -eu - -upx login $1 $2 $3 - -upx sync $4 $5 --delete - -upx logout - -echo 'Deploy Success' -exit 0 \ No newline at end of file