Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 834 Bytes

README.md

File metadata and controls

41 lines (30 loc) · 834 Bytes

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