Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gitea destination mirror internal #173

Closed
defyjoy opened this issue Oct 3, 2023 · 14 comments
Closed

Gitea destination mirror internal #173

defyjoy opened this issue Oct 3, 2023 · 14 comments

Comments

@defyjoy
Copy link

defyjoy commented Oct 3, 2023

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
Copy link
Owner

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

@cooperspencer
Copy link
Owner

I added the feature in #174. I will merge it a bit later and create a new release.

@cooperspencer
Copy link
Owner

cooperspencer commented Oct 3, 2023

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
Copy link
Author

defyjoy commented Oct 3, 2023

Wow that was fast !!!!!!

@defyjoy
Copy link
Author

defyjoy commented Oct 4, 2023

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
Copy link
Owner

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
Copy link
Owner

cooperspencer commented Oct 4, 2023

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

@defyjoy
Copy link
Author

defyjoy commented Oct 4, 2023

Perfect ! it working as expected

@defyjoy
Copy link
Author

defyjoy commented Oct 5, 2023

Could you please release this as docker image ?

@cooperspencer
Copy link
Owner

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

@cooperspencer
Copy link
Owner

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

@defyjoy
Copy link
Author

defyjoy commented Oct 6, 2023

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

@defyjoy defyjoy closed this as completed Oct 6, 2023
@defyjoy
Copy link
Author

defyjoy commented Jan 24, 2024

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

@cooperspencer
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants