Skip to content

Latest commit

 

History

History
17 lines (15 loc) · 1.1 KB

README.md

File metadata and controls

17 lines (15 loc) · 1.1 KB

docker_build_push_ghcr

ghcr_container

Build a docker container and push it to to your private package repo. Using this because I don't want to pay $4.75 a month for a basic azure container repo. For 500mb of storage for free, it's a steal. Especially if you use my Minimized Go Server Docker Script, which averages 2.5-3mb per image.

How to use

Go to settings -> Developer Settings -> Personal Access Tokens -> Tokens (Classic). Create a new token with delete:packages, repo, write:packages permissions. Copy this and save as an repositiory secret named PAT_PACKAGE_TOKEN.

Azure Container Settings

Setting Value
Name {repo_name}
Image source Docker Hub or other registries
Image type Private
Registry login server ghcr.io
Username Github Username
Password PAT_PACKAGE_TOKEN
Image name {username}/{repo_name}:{version_tag}