This .Net Core Sample Project is a sample using GitHub Artifacts to upload your Docker Container Images.
To Autenticate in GitHub Artifacts, i used the action azure/docker-login@v1
- uses: azure/docker-login@v1
with:
login-server: docker.pkg.github.com
username: ${{ secrets.GH_PACKAGES_USER }}
password: ${{ secrets.GITHUB_TOKEN }}
In Password, I using the GITHUB_TOKEN, env variable.