A sample docker app for github package registry
Just push to the master branch and GitHub action will automatically handle the build & deploy process for you.
- Build your docker image
docker build -t sohelamin/docker-node-app .
- Get the image id
docker images
- Login to the github docker package registry using a github token
docker login docker.pkg.github.com --username sohelamin
- Tag the image with name & version
docker tag IMAGE_ID docker.pkg.github.com/sohelamin/docker-github-registry/docker-node-app:latest
- Push to the registry
docker push docker.pkg.github.com/sohelamin/docker-github-registry/docker-node-app:latest
- Pull on your server/machine
docker pull docker.pkg.github.com/sohelamin/docker-github-registry/docker-node-app:latest