From f7de4b9a917a7fbf1da48893d22539b2e8947beb Mon Sep 17 00:00:00 2001 From: Ultimate <3315612+TheUltimateC0der@users.noreply.github.com> Date: Thu, 20 Apr 2023 17:50:17 +0200 Subject: [PATCH] Update docker-publish.yml --- .github/workflows/docker-publish.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index dcf71ff..44d1191 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -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'