kind: pipeline name: Push Content type: docker steps: - name: notify-start image: plugins/matrix settings: template: > *Build started*: {{ repo.owner }}/{{ repo.name }} <{{ build.link }}|Visit build page ↗> homeserver: from_secret: matrix-homeserver roomid: from_secret: matrix-roomid username: from_secret: matrix-username password: from_secret: matrix-pass - name: Push Content image: alpine commands: - apk add --no-cache openssh-client ca-certificates bash - apk add rsync - echo Début du Push - eval `ssh-agent -s` - echo "$SSH_KEY" | ssh-add - - mkdir -p ~/.ssh - echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config - rsync -rv --exclude ".git/" --delete -e "ssh -p 22" ./ sshcontent@91.121.90.228:~/raw.opytex.org/www/ --checksum environment: SSH_KEY: from_secret: sshcontent-key - name: notify-result image: plugins/matrix settings: template: > {{#success build.status}} *Build {{build.number}}* on {{ repo.owner }}/{{ repo.name }} succeeded. Good job. {{else}} *Build {{build.number}}* on {{ repo.owner }}/{{ repo.name }} failed. Go back to work. {{/success}} <{{ build.link }}|Visit build page ↗> homeserver: from_secret: matrix-homeserver roomid: from_secret: matrix-roomid username: from_secret: matrix-username password: from_secret: matrix-pass