Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/gregyjames/ghcr_container
- Owner: gregyjames
- Created: 2024-04-27T02:02:58.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-04-27T03:54:05.000Z (9 months ago)
- Last Synced: 2024-11-10T22:14:26.389Z (3 months ago)
- Topics: 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
- Homepage:
- Size: 27.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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}