Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gregyjames/ghcr_container

Build an docker container and push it to to your private package repo.
https://github.com/gregyjames/ghcr_container

azure azure-container azure-container-apps azure-container-registry azure-container-service azurecontainerapps azurecontainerinstance azurecontainerregistry azurecontainerservice docker docker-image dockerfile github github-actions github-package-deployment github-package-registry github-packages

Last synced: 24 days ago
JSON representation

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

Awesome Lists containing this project

README

        

[![docker_build_push_ghcr](https://github.com/gregyjames/ghcr_container/actions/workflows/tag.yml/badge.svg)](https://github.com/gregyjames/ghcr_container/actions/workflows/tag.yml)
# 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](https://medium.com/@thegregjames/how-to-build-a-tiny-go-server-docker-image-31f061249e90), 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}