mirror of
https://gitee.com/jack_whh/SFTP-Deploy-Action.git
synced 2026-03-13 00:12:56 +08:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7d36dbb31e | ||
|
|
dcd5527d19 | ||
|
|
9e32c074c6 | ||
|
|
527eabc0b7 | ||
|
|
90843aab03 |
@@ -1,6 +1,9 @@
|
||||
# Container image that runs your code
|
||||
FROM alpine:3.13
|
||||
|
||||
RUN echo "http://mirrors.aliyun.com/alpine/v3.13/main" > /etc/apk/repositories
|
||||
RUN echo "http://mirrors.aliyun.com/alpine/v3.13/community" >> /etc/apk/repositories
|
||||
|
||||
# Copies your code file from your action repository to the filesystem path `/` of the container
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
|
||||
|
||||
@@ -43,6 +43,10 @@ fi
|
||||
printf "%s" "$4" >$TEMP_SSH_PRIVATE_KEY_FILE
|
||||
echo "-------"
|
||||
cat $TEMP_SSH_PRIVATE_KEY_FILE
|
||||
echo "======="
|
||||
echo "$4" >$TEMP_SSH_PRIVATE_KEY_FILE
|
||||
echo "-------"
|
||||
cat $TEMP_SSH_PRIVATE_KEY_FILE
|
||||
# avoid Permissions too open
|
||||
chmod 600 $TEMP_SSH_PRIVATE_KEY_FILE
|
||||
|
||||
|
||||
Reference in New Issue
Block a user