Skip to content

Commit 61c6caf

Browse files
committed
Switch to Docker Hub for CI/CD
1 parent d39b069 commit 61c6caf

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/ci-cd.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,15 @@ jobs:
1515
- name: Set up Docker Buildx
1616
uses: docker/setup-buildx-action@v2
1717

18-
- name: Log in to GitHub Container Registry
18+
- name: Login to DockerHub
1919
uses: docker/login-action@v2
2020
with:
21-
registry: ghcr.io
22-
username: ${{ github.actor }}
23-
password: ${{ secrets.GITHUB_TOKEN }}
21+
username: ${{ secrets.DOCKER_USERNAME }}
22+
password: ${{ secrets.DOCKER_PASSWORD }}
2423

25-
- name: Build and push Docker image
24+
- name: Build and Push Docker image
2625
uses: docker/build-push-action@v5
2726
with:
2827
context: .
2928
push: true
30-
tags: ghcr.io/singhsayan/node-ci-cd-k8s-monitoring:latest
29+
tags: ${{ secrets.DOCKER_USERNAME }}/node-ci-cd-k8s-monitoring:latest

0 commit comments

Comments
 (0)