File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed
Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change 1- name : Build and Push Docker Image to GHCR
1+ name : Build and Push Docker Image
22
33on :
44 push :
55 tags :
66 - ' v*'
77 workflow_dispatch :
88
9- env :
10- REGISTRY : ghcr.io
11- IMAGE_NAME : ${{ github.repository }}
12-
139jobs :
1410 build-and-push :
1511 runs-on : ubuntu-latest
@@ -28,15 +24,23 @@ jobs:
2824 - name : Log in to GitHub Container Registry
2925 uses : docker/login-action@v3
3026 with :
31- registry : ${{ env.REGISTRY }}
27+ registry : ghcr.io
3228 username : ${{ github.actor }}
3329 password : ${{ secrets.GITHUB_TOKEN }}
3430
31+ - name : Log in to Docker Hub
32+ uses : docker/login-action@v3
33+ with :
34+ username : ${{ secrets.DOCKERHUB_USERNAME }}
35+ password : ${{ secrets.DOCKERHUB_TOKEN }}
36+
3537 - name : Extract metadata (tags, labels) for Docker
3638 id : meta
3739 uses : docker/metadata-action@v5
3840 with :
39- images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
41+ images : |
42+ ghcr.io/${{ github.repository }}
43+ sufx/whatseerr
4044 tags : |
4145 type=semver,pattern={{version}}
4246 type=semver,pattern={{major}}.{{minor}}
You can’t perform that action at this time.
0 commit comments