For now, this section assumes that the platform in use is Linux,
and that the Git repository hosting platform in use is Gitea.
sudo apt -y install git
ssh-keygen -t ed25519 -C "gitea-key" -f ~/.ssh/gitea_key
cd <repo directory> git init git remote add origin ssh://git@192.168.1.85:2222/mike/<repo-name>.git git status git add . git commit -m "Initial Commit" git push -u origin main
Ensure a login to the appropriate registry is enabled, especially for private repos:
docker login [registry fqdn] (ex: www.github.com)
Build and push the image:
cd [image directory] docker build -t [registry fqdn]/[username]/[image_name]:[tag] Example: docker build -t www.github.com/fred/awesome_image:v1.0.0 . docker push [registry fqdn]/[username]/[image_name]:[tag] Example: docker push www.github.com/fred/awesome_image:v1.0.0