Skip to content

Commit be42b89

Browse files
author
Your Name
committed
Latest Stable Release
1 parent eecc8f2 commit be42b89

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

.github/workflows/docker-publish.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
1-
name: Build and Push Docker Image to GHCR
1+
name: Build and Push Docker Image
22

33
on:
44
push:
55
tags:
66
- 'v*'
77
workflow_dispatch:
88

9-
env:
10-
REGISTRY: ghcr.io
11-
IMAGE_NAME: ${{ github.repository }}
12-
139
jobs:
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}}

0 commit comments

Comments
 (0)