mirror of
https://github.com/replicatedhq/ttl.sh.git
synced 2026-02-14 16:59:51 +00:00
ci/enable-real-deploys
Temporarily deploy on merge to prerelease branch instead of main. This allows testing the deploy workflow without requiring PR approval. TODO: Switch back to main after testing is complete. Signed-off-by: Marc Campbell <marc.e.campbell@gmail.com>
ttl.sh
An ephemeral container registry for CI workflows.
What is ttl.sh?
ttl.sh is an anonymous, expiring Docker container registry using the official Docker Registry image. This is a set of tools and configurations that can be used to deploy the registry without authentication, but with self-expiring images.
Development
Development for the services in this project is done through Okteto.
Setup
- Install the Okteto CLI (
brew install okteto) - Setup Okteto CLI (
okteto context use https://replicated.okteto.dev) - Setup Okteto context in kubectl (
okteto context update-kubeconfig) - Deploy your current branch. (from the ttl.sh root directory:
okteto pipeline deploy)
Debugging
Okteto is utilized for debugging. New build targets have been added to allow building and running each service in debug mode.
- Replace the default container in your Okteto environment with a development container.
- From the root directory:
okteto uporokteto up <service name>
- From the root directory:
- Run the build targets for the desired service:
- ttl-hooks:
make deps build hooks - ttl-reaper:
make deps build reap
- ttl-hooks:
- Stop development and go back to the default container.
- From the root directory:
okteto downorokteto down <service name>
- From the root directory:
Example workflows
Switching branches or rebasing
git checkout my-new-branchokteto pipeline deploy- (make code changes)
okteto up- (test changes, find they don't work, make more changes)...
okteto down- (commit code, and be happy)
Description
Languages
TypeScript
89%
HTML
4.7%
HCL
2%
CSS
1.6%
Shell
1%
Other
1.6%