Skip to content

Commit d39339a

Browse files
committed
add Docker Hub push
1 parent 767b0f5 commit d39339a

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

‎.github/workflows/build.yml‎

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,16 @@ jobs:
1717
registry: ghcr.io
1818
username: ${{ github.actor }}
1919
password: ${{ secrets.GITHUB_TOKEN }}
20+
- uses: docker/login-action@v3
21+
with:
22+
registry: docker.io
23+
username: ${{ secrets.DOCKERHUB_USERNAME }}
24+
password: ${{ secrets.DOCKERHUB_TOKEN }}
2025
- uses: docker/build-push-action@v6
2126
with:
2227
context: .
2328
platforms: linux/amd64,linux/arm64,linux/arm/v7
24-
push: ${{ github.event_name != 'pull_request' }}
25-
tags: ghcr.io/${{ github.repository }}:latest
29+
push: true
30+
tags: |
31+
ghcr.io/${{ github.repository }}:latest
32+
docker.io/${{ secrets.DOCKERHUB_USERNAME }}/docker-image-watcher:latest

0 commit comments

Comments
 (0)