build(ci): publish to dockerhub
This commit is contained in:
parent
5f8bb5c1e7
commit
032219bee2
2 changed files with 12 additions and 8 deletions
16
.github/workflows/auto-update.yml
vendored
16
.github/workflows/auto-update.yml
vendored
|
|
@ -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'}}
|
||||
|
|
|
|||
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
|
|
@ -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'}}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue