Skip to content

Commit 45abf66

Browse files
author
Rushir Bhavsar
committed
Update Docker workflow to build only without pushing to registry
1 parent d0b2eb0 commit 45abf66

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

.github/workflows/docker.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,6 @@ jobs:
1717
- name: Set up Docker Buildx
1818
uses: docker/setup-buildx-action@v2
1919

20-
- name: Log in to Docker Hub
21-
if: github.event_name != 'pull_request'
22-
uses: docker/login-action@v2
23-
with:
24-
username: ${{ secrets.DOCKER_USERNAME }}
25-
password: ${{ secrets.DOCKER_PASSWORD }}
26-
continue-on-error: true
27-
2820
- name: Extract metadata
2921
id: meta
3022
uses: docker/metadata-action@v4
@@ -47,5 +39,7 @@ jobs:
4739
cache-from: type=gha
4840
cache-to: type=gha,mode=max
4941

50-
- name: Build status
51-
run: echo "Docker image built successfully!"
42+
- name: Build success
43+
run: |
44+
echo "✅ Docker image built successfully!"
45+
echo "Image tags: ${{ steps.meta.outputs.tags }}"

0 commit comments

Comments
 (0)