User Tools

Site Tools


devops_stuff

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
devops_stuff [2026/05/08 22:25] – mikedevops_stuff [2026/09/20 09:51] (current) – mike
Line 3: Line 3:
 ==== Getting Started with Git ==== ==== Getting Started with Git ====
  
-  For now, this section assumes that the platform in use is Linux, and that the +For now, this section assumes that the platform in use is Linux,\\ 
-  Git repository hosting platform in use is Gitea+and that the Git repository hosting platform in use is Gitea.
      
 === Install git === === Install git ===
Line 16: Line 16:
 === Add the key to Gitea === === Add the key to Gitea ===
  
 +=== Steps to create a repo and get it into Gitea ===
 +  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
  
 +==== Building an image and pushing to a container registry ====
 +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
 +  
devops_stuff.1778304343.txt.gz · Last modified: by mike

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki