Skip to content

Commit

Permalink
Update docker-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
TheUltimateC0der committed Apr 20, 2023
1 parent 85fde1c commit f7de4b9
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/docker-publish.yml
Expand Up @@ -34,7 +34,23 @@ jobs:

- name: Build the Docker image
if: github.event_name != 'pull_request'
run: docker build . --file Dockerfile -t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_LC }}:$(date +%s) -t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_LC }}:latest -t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_LC }}:${{ env.BRANCH }}
run: docker build . --file Dockerfile -t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_LC }}:$(date +%s) -t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_LC }}:latest -t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_LC }}:${{ env.BRANCH }} --label "org.opencontainers.image.source=https://github.com/TheUltimateC0der/alternatrr" --label "org.opencontainers.image.description=alternatrr lets you add alternative titles to your sonarr instance by editing the sonarr.db file directly via a simple UI." --label "org.opencontainers.image.licenses=AGPL3"

- name: Docker Login
# You may pin to the exact commit or the version.
# uses: docker/login-action@dd4fa0671be5250ee6f50aedf4cb05514abda2c7
uses: docker/login-action@v1.14.1
with:
# Server address of Docker registry. If not set then will default to Docker Hub
registry: ghcr.io
# Username used to log against the Docker registry
username: ${{ secrets.GHCR_DOCKER_USERNAME }}
# Password or personal access token used to log against the Docker registry
password: ${{ secrets.GITHUB_TOKEN }}

- name: Push docker image
run: docker push -a ghcr.io/theultimatec0der/listrr.pro.sonarr


- name: Docker Login
if: github.event_name != 'pull_request'
Expand Down

0 comments on commit f7de4b9

Please sign in to comment.