This commit is contained in:
parent
79b986c10e
commit
0776bb4ff7
@ -32,17 +32,14 @@ steps:
|
|||||||
from_secret: hugo_host
|
from_secret: hugo_host
|
||||||
HUGO_DIR:
|
HUGO_DIR:
|
||||||
from_secret: hugo_dir
|
from_secret: hugo_dir
|
||||||
HUGO_PASSWD:
|
|
||||||
from_secret: hugo_passwd
|
|
||||||
commands:
|
commands:
|
||||||
- pacman -Sy --needed --noconfirm sshpass
|
|
||||||
- git submodule init
|
- git submodule init
|
||||||
- git submodule update
|
- git submodule update
|
||||||
- rm -rfv ./public
|
- rm -rfv ./public
|
||||||
- hugo --gc=true --minify
|
- hugo --gc=true --minify
|
||||||
- echo $HUGO_KEY > ./hugo_deploy
|
- echo $HUGO_KEY > ./hugo_deploy
|
||||||
- chmod -v 600 ./hugo_deploy
|
- chmod -v 600 ./hugo_deploy
|
||||||
- rsync -av -e "sshpass -p $HUGO_PASSWD ssh -vv -o KexAlgorithms=curve25519-sha256@libssh.org,ecdh-sha2-nistp521,ecdh-sha2-nistp384,ecdh-sha2-nistp256,diffie-hellman-group-exchange-sha256 -o PreferredAuthentications=publickey -o PubkeyAuthentication=yes -o PasswordAuthentication=no -c aes256-ctr,aes256-cbc -o StrictHostKeyChecking=no" --delete public/ $HUGO_USER@$HUGO_HOST:$HUGO_DIR
|
- rsync -av -e "ssh -vv -o KexAlgorithms=curve25519-sha256@libssh.org,ecdh-sha2-nistp521,ecdh-sha2-nistp384,ecdh-sha2-nistp256,diffie-hellman-group-exchange-sha256 -o PreferredAuthentications=publickey -o PubkeyAuthentication=yes -o PasswordAuthentication=no -c aes256-ctr,aes256-cbc -o StrictHostKeyChecking=no -i ./hugo_deploy" --delete public/ $HUGO_USER@$HUGO_HOST:$HUGO_DIR
|
||||||
- shred -zuv -n 7 ./hugo_deploy
|
- shred -zuv -n 7 ./hugo_deploy
|
||||||
when:
|
when:
|
||||||
status:
|
status:
|
||||||
|
Loading…
Reference in New Issue
Block a user