Skip to content

Instantly share code, notes, and snippets.

View sumanchapai's full-sized avatar

Suman Chapai sumanchapai

View GitHub Profile
@sumanchapai
sumanchapai / docker-push.py
Last active November 14, 2025 07:05
helper script to build/tag and push to docker. follows a convention to save latest tag name in a file.
import subprocess
from pathlib import Path
# --- SETTINGS ---
username = "sumanchapai"
folder_name = "bean-docker"
local_docker_image_name = folder_name
remote_docker_image_name = f"{username}/{folder_name}"
version_file = Path(".dockerversion")