https://github.com/sohelamin/docker-github-registry
A sample docker app for github package registry
https://github.com/sohelamin/docker-github-registry
docker github-actions github-package-registry nodejs
Last synced: 6 months ago
JSON representation
A sample docker app for github package registry
- Host: GitHub
- URL: https://github.com/sohelamin/docker-github-registry
- Owner: sohelamin
- Created: 2019-10-15T17:44:26.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-21T06:40:19.000Z (over 5 years ago)
- Last Synced: 2025-04-02T15:11:10.372Z (6 months ago)
- Topics: docker, github-actions, github-package-registry, nodejs
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker GitHub Package Registry
> A sample docker app for github package registry## Usage
Just push to the master branch and GitHub action will automatically handle the build & deploy process for you.## Manual Deploy
1. Build your docker image
```
docker build -t sohelamin/docker-node-app .
```
2. Get the image id
```
docker images
```
3. Login to the github docker package registry using a github token
```
docker login docker.pkg.github.com --username sohelamin
```
4. Tag the image with name & version
```
docker tag IMAGE_ID docker.pkg.github.com/sohelamin/docker-github-registry/docker-node-app:latest
```
5. Push to the registry
```
docker push docker.pkg.github.com/sohelamin/docker-github-registry/docker-node-app:latest
```
6. Pull on your server/machine
```
docker pull docker.pkg.github.com/sohelamin/docker-github-registry/docker-node-app:latest
```