https://github.com/q42philips/gitops-sync
Small utility that synchronizes the current file system state to a remote repository (the GitOps repository)
https://github.com/q42philips/gitops-sync
gitops
Last synced: 8 months ago
JSON representation
Small utility that synchronizes the current file system state to a remote repository (the GitOps repository)
- Host: GitHub
- URL: https://github.com/q42philips/gitops-sync
- Owner: Q42Philips
- Created: 2021-04-20T14:26:13.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-02-27T07:00:46.000Z (almost 2 years ago)
- Last Synced: 2025-05-13T19:34:29.071Z (8 months ago)
- Topics: gitops
- Language: Go
- Homepage:
- Size: 78.1 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GitOps Sync cli
This tools job is to copy provided artifacts to a GitOps repository.
Settings/inputs:
- a file system
- whitelist which files to copy
- destination
1. git repository url
2. path
3. branch name
4. PR contents
You must ensure the git repository is writable by providing the right authorization, either via 1) the url, or 2) via a SSH private key, or 3) an OAuth token in `$GITHUB_TOKEN`.
Currently only works using GitHub. Please consider forking and adding GitLab support if needed.
Usage:
```
make build
dotenv -f sync.env bin/sync -output-repo https://github.com/yourorg/gitops.git -output-base=develop -output-head=test-sync
```
### References
1. See some `go-git` examples in https://github.com/go-git/go-git/tree/master/_examples/