You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
465 B
Bash

2 years ago
#!/bin/sh -l
2 years ago
set -ex
2 years ago
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 \
&& tar -zxf upx.tar.gz \
&& chmod +x upx \
&& mv upx /usr/local/bin/upx
### 执行upx upload
2 years ago
upx login ${inputs.bucket} ${inputs.operator} ${inputs.operator_password}
2 years ago
echo "start upx upload!"
2 years ago
upx sync ${inputs.local_path} ${inputs.remote_path} --delete
2 years ago
echo "upx upload successful!"
upx logout