Skip to content

Commit

Permalink
updated readme file
Browse files Browse the repository at this point in the history
  • Loading branch information
danihagosbl committed May 9, 2024
1 parent 365c95d commit 20014f4
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,15 @@
Updated readme file
# Push Docker Images to GitHub Container Registry
## GitHub Action for Contineous publishing
### To publish the docker container images to github container registry we need to get personal access token from developer seeting.
To get personal access token `Github profile -> developern setting -> select the classic option -> select delete and write permission` then copy the PAT somewhere as it will be used as a password for docker login.

## Docker login
In the project main branch login to the docker using `docker login --username githubusername --password PAT ghrc.io`
Then next step is to build the docker image using `docker build . -t ghrc.io/githubusername/yourimage:latest`
Check the image using `docker image ls`
Push the docker image to the github container registry using `docker push ghcr.io/githubusername/yourimage:latest`

## Contineous Publishing to GRC using Github action
Add the github action workflow


0 comments on commit 20014f4

Please sign in to comment.