Git repositories and SSO
When you create a project, a Git repository is created under your account and the first push is done for you. The console, Git and the image registry all use one account, and you don't type a password when you push.
#overview
Your code and images in the same place
A repository per project
yakcloud project init creates a Gitea repository, sets up the remote and makes the first push. The address is git.yakcloud.io.
Push without a password
The CLI's Git credential helper passes along your signed-in account's token. It only gives the token to the YakCloud Git server, never to other hosts.
Image registry
Container images you build go to your account's registry (registry.yakcloud.io), and cluster nodes pull them from there.
Push a tag, run CI
The starter includes a CI setup. Push a tag and it builds your image and pushes it to the registry.
One account to sign in
The console and Git share the same account (SSO). The CLI, VS Code extension and desktop app sign in with that account too.
Account security
Sign-up includes email verification, and you change your password and two-factor authentication in the account security center.
#how
How it works
Sign up
Sign up with your email in the console and click the link in the confirmation email.
Sign in to the CLI
Run
yakcloud loginto link your account to the project on this computer.Create a project
yakcloud project initcreates the repository and makes the first push.Push
Run
git pushas usual. The CLI handles the credentials.
$ yakcloud login $ yakcloud whoami $ yakcloud project init my-app # The repository is created and the first push is done $ git push origin main
#notes
Good to know
- You can set the account per project. Different projects on one computer can use different accounts without mixing them up.
- The old Git server address (
gitea.yakenator.io) still reaches the same repositories. The new CLI moves your project's remote to the new name for you.