Drone plugin to sync current ref to a remote git repository.
Build the binary with the following commands:
go buildBuild the docker image with the following commands:
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -a -o release/$GOOS/$GOARCH/drone-git-sync
# docker
docker build --rm -t ghcr.io/virzz/drone-git-sync .
# podman
podman build --rm -t ghcr.io/virzz/drone-git-sync .steps:
- name: Sync Github
image: ghcr.io/virzz/drone-git-sync
settings:
remote: "ssh://git@github.com:foo/bar.git"
force: true
ssh_key:
from_secret: SYNC_GITHUB_KEY