2024-02-23 04:24:23 +00:00
|
|
|
steps:
|
|
|
|
- name: build
|
2024-06-13 01:02:29 +00:00
|
|
|
when:
|
|
|
|
- branch: master
|
|
|
|
event: push
|
2024-02-23 04:24:23 +00:00
|
|
|
image: debian:testing-slim
|
|
|
|
secrets: [ ssh_key, ssh_port ]
|
|
|
|
commands:
|
|
|
|
- apt-get update
|
|
|
|
- apt-get install -y hugo rsync openssh-client
|
|
|
|
- mkdir ~/.ssh
|
|
|
|
- printf '%s\n' "$${SSH_KEY}" > ~/.ssh/id_rsa
|
|
|
|
- chmod 0700 ~/.ssh
|
2024-02-25 02:37:50 +00:00
|
|
|
- chmod 0600 ~/.ssh/id_rsa
|
2024-02-23 04:32:43 +00:00
|
|
|
- /usr/bin/hugo --verbose
|
2024-02-25 02:36:37 +00:00
|
|
|
- /usr/bin/rsync --verbose --compress --archive --recursive
|
|
|
|
--progress --checksum --delete
|
|
|
|
--rsh="/usr/bin/ssh -4 -p $${SSH_PORT} -o StrictHostKeyChecking=no"
|
|
|
|
public/ blog@sergiodj.net:.
|