Skip to content

virzz/drone-git-sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

drone-git-sync

Drone plugin to sync current ref to a remote git repository.

Build

Build the binary with the following commands:

go build

Docker

Build 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 .

Usage .drone.yml

steps:
  - name: Sync Github
    image: ghcr.io/virzz/drone-git-sync
    settings:
      remote: "ssh://[email protected]:foo/bar.git"
      force: true
      ssh_key:
        from_secret: SYNC_GITHUB_KEY

References

drone-git drone-git-push