Skip to content

Instantly share code, notes, and snippets.

@mikaelvesavuori
Created December 3, 2023 15:51
Show Gist options
  • Save mikaelvesavuori/9006c0c2e3a8b62219cf55bdd866dc7e to your computer and use it in GitHub Desktop.
Save mikaelvesavuori/9006c0c2e3a8b62219cf55bdd866dc7e to your computer and use it in GitHub Desktop.
Push a container image to ttl.sh using Podman
#!/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