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

Support active user calculation for self-hosted repos #50

Merged
merged 1 commit into from
Feb 24, 2024

Conversation

rrjjvv
Copy link
Contributor

@rrjjvv rrjjvv commented Feb 24, 2024

This dynamically adds SSH keys based on the URL passed, allowing clones to work with providers other than github and gitlab.

This was surprisingly complicated; I believe the combination of the entire URL being passed as a secret, which necessitates --no-cache, resulted in my preferred implementations not working (I suspect due to earthly/earthly#2593). I assumed keeping the 'interface' intact was paramount (given that it's publicly documented); inlining all usage of the secret was the only thing that worked consistently.

You're welcome to close this, borrow from it for your own preferred implementation, etc. I at least wanted it to work for myself, so figured I'd share it.

Potential fix for #49

@rrjjvv rrjjvv requested a review from a team as a code owner February 24, 2024 04:01
@CLAassistant
Copy link

CLAassistant commented Feb 24, 2024

CLA assistant check
All committers have signed the CLA.

This dynamically adds SSH keys based on the URL passed, allowing clones to work with providers other than github and gitlab.
@rrjjvv rrjjvv force-pushed the hosted-active-users branch from d0881e0 to 5ebf22f Compare February 24, 2024 04:08
Copy link
Member

@idelvall idelvall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@idelvall
Copy link
Member

Thanks Roberto!

@idelvall idelvall enabled auto-merge (squash) February 24, 2024 13:13
@idelvall idelvall disabled auto-merge February 24, 2024 13:14
@idelvall idelvall merged commit 15cd2ac into earthly:main Feb 24, 2024
1 of 3 checks passed
@rrjjvv rrjjvv deleted the hosted-active-users branch February 24, 2024 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants