Skip to content

Commit da20652

Browse files
authored
Update docker.yml
1 parent ef56816 commit da20652

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/docker.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ on:
55
push:
66
branches:
77
- main
8-
paths:
9-
- 'Dockerfile'
108

119
jobs:
1210
build:
@@ -22,11 +20,20 @@ jobs:
2220
uses: docker/setup-buildx-action@v2
2321

2422
# Build the Docker image
25-
- name: Build Docker image
23+
- name: Build Docker image (github)
2624
run: |
2725
docker build -t ghcr.io/${{ github.repository_owner }}/second-brain-database:latest .
2826
29-
- name: Publish to Registry
27+
- name: Build Docker image (docker hub)
28+
run: |
29+
docker build -t rohanbatra/second-brain-database:latest
30+
31+
- name: Publish Docker image (docker hub)
32+
run: |
33+
docker login -u rohanbatra -p ${{ secrets.DOCKER_HUB_TOKEN }}
34+
docker push -t rohanbatra/second-brain-database:latest
35+
36+
- name: Publish to Github Registry
3037
uses: elgohr/Publish-Docker-Github-Action@v5
3138
with:
3239
name: rohanbatrain/second_brain_database/core

0 commit comments

Comments
 (0)