Source file: new/git_publish.yml
git_publish plugin
Details
---
steps:
- name: "Publish to another git repository"
description: "Description of this step"
# network: bridge # (default)
# run_as: root
# run_as: user # (default)
ssh:
format: "id_ed25519"
copy_from: "${HOME}/.ssh"
# copy_to: "/root/.ssh" # root
# copy_to: "/tmp/microci_deploy" # user (default)
plugin:
name: "git_publish"
git_url: "git@seuservidor.com.br:awesome_deploy.git"
branch: "gh-pages" # The default branch is 'main'
copy_to: "/tmp/microci_deploy" # Default folder inside the container
copy_from: "site" # Default folder containing the files
clean_before: true # Removes all files before copying the new ones