Created
December 3, 2023 15:51
-
-
Save mikaelvesavuori/9006c0c2e3a8b62219cf55bdd866dc7e to your computer and use it in GitHub Desktop.
Push a container image to ttl.sh using Podman
This file contains hidden or 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
#!/bin/bash | |
######################################################################## | |
# Uses Podman to build an image and push it to ttl.sh (https://ttl.sh) # | |
######################################################################## | |
NAME=$(uuidgen | tr "[:upper:]" "[:lower:]") | |
echo "Image name is: ${NAME}" | |
podman build -t ttl.sh/${NAME}:5m . | |
podman push ttl.sh/${NAME}:5m |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment