Update entrypoint.sh

main
不忘初心 2 years ago committed by GitHub
parent 0ed41b10fb
commit f04b55d30c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -6,16 +6,14 @@ apk update \
&& apk add --no-cache wget \ && 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 \ && 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 \ && tar -zxf upx.tar.gz \
&& chmod +x upx \ && chmod +x upx
&& mv upx /usr/local/bin/upx
### 执行upx upload ### 执行upx upload
upx login ${bucket} ${operator} ${operator_password} ./upx login ${bucket} ${operator} ${operator_password}
echo "start delete!" echo "start delete!"
upx ls ./upx rm -a hugo/*
upx rm -a /*
echo "start upx upload!" echo "start upx upload!"
upx put ${local_path} ${remote_path} ./upx put ${local_path} ${remote_path}
#upx sync ${local_path} ${remote_path} --delete #./upx sync ${local_path} ${remote_path} --delete
echo "upx upload successful!" echo "upx upload successful!"
upx logout ./upx logout

Loading…
Cancel
Save