File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change 55 push :
66 branches :
77 - main
8- paths :
9- - ' Dockerfile'
108
119jobs :
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
You can’t perform that action at this time.
0 commit comments