devops_stuff
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| devops_stuff [2026/05/10 14:31] – mike | devops_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 Git repository hosting platform in use is Gitea. | + | and that the Git repository hosting platform in use is Gitea. |
| | | ||
| === Install git === | === Install git === | ||
| Line 19: | Line 19: | ||
| cd <repo directory> | cd <repo directory> | ||
| git init | git init | ||
| - | git remote | + | git remote |
| git status | git status | ||
| git add . | git add . | ||
| Line 25: | Line 25: | ||
| git push -u origin main | 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]/ | ||
| + | Example: docker build -t www.github.com/ | ||
| + | docker push [registry fqdn]/ | ||
| + | Example: docker push www.github.com/ | ||
| + | | ||
devops_stuff.1778448673.txt.gz · Last modified: by mike
