Skip to content

Commit 7de33be

Browse files
committed
bring back the login routine
1 parent dc7f5dc commit 7de33be

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/build.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,19 @@ jobs:
2828
- name: Set up Docker Buildx
2929
uses: docker/setup-buildx-action@v3
3030

31+
- name: Login to DockerHub
32+
uses: docker/login-action@v3
33+
with:
34+
username: ${{ secrets.DOCKERHUB_USERNAME }}
35+
password: ${{ secrets.DOCKERHUB_TOKEN }}
36+
37+
- name: Login to Github Packages
38+
uses: docker/login-action@v3
39+
with:
40+
registry: ghcr.io
41+
username: ${{ github.actor }}
42+
password: ${{ secrets.GITHUB_TOKEN }}
43+
3144
- name: Extract metadata (tags, labels) for Docker (Jammy)
3245
if: matrix.ubuntu-release-name == 'jammy'
3346
id: meta-jammy
@@ -95,6 +108,12 @@ jobs:
95108
- name: Set up Docker Buildx
96109
uses: docker/setup-buildx-action@v3
97110

111+
- name: Login to DockerHub
112+
uses: docker/login-action@v3
113+
with:
114+
username: ${{ secrets.DOCKERHUB_USERNAME }}
115+
password: ${{ secrets.DOCKERHUB_TOKEN }}
116+
98117
- name: Build and push CentOS based Docker images
99118
uses: docker/build-push-action@v6
100119
with:

0 commit comments

Comments
 (0)