Skip to content

Commit 8e04e6b

Browse files
authored
Merge pull request #1846 from pi-hole/development
Development
2 parents 68dca72 + 5f0bd3a commit 8e04e6b

3 files changed

Lines changed: 26 additions & 48 deletions

File tree

.github/actions/login-repo/action.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

.github/dependabot.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ updates:
44
- package-ecosystem: "github-actions"
55
directories:
66
- "/"
7-
- "/.github/actions/login-repo/"
87
schedule:
98
interval: "weekly"
109
day: saturday

.github/workflows/build-and-publish.yml

Lines changed: 26 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,20 @@ jobs:
5353
type=ref,event=branch,enable=${{ github.event_name != 'schedule' }}
5454
type=ref,event=tag
5555
56-
- name: Login to DockerHub and GitHub Container Registry
57-
uses: ./.github/actions/login-repo
56+
-
57+
name: Login to Docker Hub
58+
uses: docker/login-action@v3
5859
with:
59-
docker_username: ${{ secrets.DOCKERHUB_USER }}
60-
docker_password: ${{ secrets.DOCKERHUB_PASS }}
61-
ghcr_username: ${{ github.repository_owner }}
62-
ghcr_password: ${{ secrets.GITHUB_TOKEN }}
60+
registry: docker.io
61+
username: ${{ secrets.DOCKERHUB_USER }}
62+
password: ${{ secrets.DOCKERHUB_PASS }}
63+
-
64+
name: Login to GitHub Container Registry
65+
uses: docker/login-action@v3
66+
with:
67+
registry: ghcr.io
68+
username: ${{ github.repository_owner }}
69+
password: ${{ secrets.GITHUB_TOKEN }}
6370

6471
- name: Set up QEMU
6572
uses: docker/setup-qemu-action@v3
@@ -142,13 +149,20 @@ jobs:
142149
type=ref,event=branch,enable=${{ github.event_name != 'schedule' }}
143150
type=ref,event=tag
144151
145-
- name: Login to DockerHub and GitHub Container Registry
146-
uses: ./.github/actions/login-repo
152+
-
153+
name: Login to Docker Hub
154+
uses: docker/login-action@v3
155+
with:
156+
registry: docker.io
157+
username: ${{ secrets.DOCKERHUB_USER }}
158+
password: ${{ secrets.DOCKERHUB_PASS }}
159+
-
160+
name: Login to GitHub Container Registry
161+
uses: docker/login-action@v3
147162
with:
148-
docker_username: ${{ secrets.DOCKERHUB_USER }}
149-
docker_password: ${{ secrets.DOCKERHUB_PASS }}
150-
ghcr_username: ${{ github.repository_owner }}
151-
ghcr_password: ${{ secrets.GITHUB_TOKEN }}
163+
registry: ghcr.io
164+
username: ${{ github.repository_owner }}
165+
password: ${{ secrets.GITHUB_TOKEN }}
152166

153167
- name: Create manifest list and push (DockerHub and GitHub Container Registry)
154168
working-directory: /tmp/digests

0 commit comments

Comments
 (0)