steps: build: image: gitnet.fr/deblan/mkdocs environment: - SITE_URL=https://doc.murph-project.org/ commands: | if [ -n "$SITE_URL" ]; then sed -i "s,# site_url: \"{site_url}\",site_url: \"$SITE_URL\"," mkdocs.yml fi mkdocs build push: image: codeberg.org/xfix/plugin-codeberg-pages-deploy:1 settings: folder: ${CI_WORKSPACE}/site ssh_key: from_secret: ssh_key #deploy: # image: eeacms/rsync # secrets: [ssh_user_host, ssh_priv_key] # commands: # - mkdir "$HOME/.ssh" # - echo "$SSH_PRIV_KEY" > "$HOME/.ssh/id_ed25519" # - chmod 700 "$HOME/.ssh" # - chmod 600 "$HOME/.ssh/id_ed25519" # - rsync -e "ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" -avz --delete ./site/ "$SSH_USER_HOST:web/" # when: # branch: # - master