publish to GHCR as well

This commit is contained in:
Chase 2023-01-17 10:45:44 -06:00
parent 4cbaaace22
commit 4ff9759e4e
Signed by: chase
GPG Key ID: 9EC29E797878008C
2 changed files with 10 additions and 0 deletions

1
.github/SECRETS.md vendored
View File

@ -3,3 +3,4 @@
* `GH_PAT` - A GitHub [Personal Access Token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token) with `repo` permissions.
* `DOCKER_USERNAME` - Your Docker Hub username.
* `DOCKER_PASSWORD` - Your Docker Hub password/access token.
* `GH_USERNAME` - Your GitHub username.

View File

@ -8,6 +8,7 @@ on:
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
GH_USERNAME: ${{ secrets.GH_USERNAME }}
jobs:
build:
@ -27,3 +28,11 @@ jobs:
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Push the Docker Image
run: docker push "$DOCKER_USERNAME"/lidarr-true-singles:latest
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ secrets.GH_USERNAME }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push the Docker Image to GitHub Container Registry
run: docker push ghcr.io/"$GH_USERNAME"/lidarr-true-singles:latest