Skip to content
/ ghcr_container Public template

Build an docker container and push it to to your private package repo.

Notifications You must be signed in to change notification settings

gregyjames/ghcr_container

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

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}