diff --git a/.github/workflows/auto-update.yml b/.github/workflows/auto-update.yml index 4a18d1d..a679e14 100644 --- a/.github/workflows/auto-update.yml +++ b/.github/workflows/auto-update.yml @@ -4,10 +4,6 @@ on: schedule: - cron: '30 23 * * *' -env: - REGISTRY: ghcr.io - IMAGE_NAME: ${{ github.repository_owner }}/qbittorrent - jobs: check: runs-on: ubuntu-latest @@ -40,10 +36,16 @@ jobs: with: fetch-depth: 0 + - name: Log in to Docker Hub + uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + - name: Log in to the Container registry uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 with: - registry: ${{ env.REGISTRY }} + registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} @@ -51,7 +53,9 @@ jobs: id: meta uses: docker/metadata-action@548e2346a9987b56d8a4104fe776321ff8e23440 with: - images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + images: | + ${{ github.repository_owner }}/qbittorrent + ghcr.io/${{ github.repository_owner }}/qbittorrent tags: | type=edge type=schedule,pattern={{date 'YYYYMMDD'}} diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0289988..a9761bb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -39,8 +39,8 @@ jobs: uses: docker/metadata-action@548e2346a9987b56d8a4104fe776321ff8e23440 with: images: | - {{ github.repository_owner }}/qbittorrent - ghcr.io/{{ github.repository_owner }}/qbittorrent + ${{ github.repository_owner }}/qbittorrent + ghcr.io/${{ github.repository_owner }}/qbittorrent tags: | type=edge type=schedule,pattern={{date 'YYYYMMDD'}}