cooperspencer / gickup

https://cooperspencer.github.io/gickup-documentation/
Apache License 2.0
955 stars 33 forks source link

Gitea destination mirror internal #173

Closed defyjoy closed 10 months ago

defyjoy commented 11 months ago

As we can see gitea has a interval for mirroring the remote repo from source . That is an inbuilt feature , so technically we do not have to run gickup everytime. It runs only when we want to. But once mirrored , gitea can take over it and on specific intervals to keep pulling changes .

Can we have this config added in gitea destination configuration as a new feature request ?

image

cooperspencer commented 11 months ago

I'll check the gitea sdk and get back to you.

cooperspencer commented 11 months ago

I added the feature in https://github.com/cooperspencer/gickup/pull/174. I will merge it a bit later and create a new release.

cooperspencer commented 11 months ago

It's now in main, can you test if it does what you want? You can just add mirrorinterval: 2h0m0s to the destination config of gitea.

defyjoy commented 11 months ago

Wow that was fast !!!!!!

defyjoy commented 11 months ago

Ok so tested this. This works fantastic btw . However below are my observations -

If the repo is mirrored once into gitea with config mirrorinterval: 2h0m0s and I change to mirrorinterval:1h0m0s.Now if I run ./gickup conf.yaml for the 2nd time. The change does not reflect . Is there any way we can solve this ?

cooperspencer commented 11 months ago

I'll need to add that to the code. Shouldn't be a big issue. I'll let you know when it's done.

cooperspencer commented 11 months ago

I just merged it into main. Can you re-test it?

defyjoy commented 11 months ago

Perfect ! it working as expected

defyjoy commented 11 months ago

Could you please release this as docker image ?

cooperspencer commented 11 months ago

Sure, I'll release it in an hour or two. I'll notify you here when it's done.

cooperspencer commented 11 months ago

Release v0.10.21 is out. It will take a bit for the containers and binaries to be built.

defyjoy commented 10 months ago

Thanks a ton . Closing this issue and again thanks for the fantastic support

defyjoy commented 7 months ago

@cooperspencer This is not yet documented . Could you please document this

cooperspencer commented 7 months ago

where did I forget to add it? It's in the documentation: https://cooperspencer.github.io/gickup-documentation/docs/configuration/destination/gitea/ and it the example configuration: https://github.com/cooperspencer/gickup/blob/main/conf.example.yml#L207