Created
February 5, 2021 14:45
-
-
Save zulhfreelancer/164dfb9579f11c867eb8ff371775fb83 to your computer and use it in GitHub Desktop.
How to use TTL.sh (ephemeral Docker image registry) // https://ttl.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UUID=$(uuidgen | awk '{print tolower($0)}') // generate UUID like "2e98d62e-a9e9-4397-a783-86458972fecc" | |
IMG=ttl.sh/${UUID}:1h // generate full image path like "ttl.sh/2e98d62e-a9e9-4397-a783-86458972fecc:1h" | |
docker build -t ${IMG} . | |
docker push ${IMG} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment