File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed
Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -2,14 +2,25 @@ name: Docker
22
33on :
44 push :
5- branches : [ "main " ]
5+ branches : [ "** " ]
66 pull_request :
77 branches : [ "main" ]
88
99jobs :
1010 build :
1111 runs-on : ubuntu-latest
1212 steps :
13- - uses : actions/checkout@v4
13+ - name : Login to Github registry
14+ uses : docker/login-action@v2
15+ with :
16+ registry : ghcr.io
17+ username : ${{ github.actor }}
18+ password : ${{ secrets.GITHUB_TOKEN }}
19+ - name : Checkout code
20+ uses : actions/checkout@v4
1421 - name : Build Docker image
15- run : docker build . --file Dockerfile --tag journal-sdk:$(date +%s)
22+ run : |
23+ docker build . --file Dockerfile --tag journal-sdk:$(date +%s)
24+ - name : Push Docker image
25+ run : |
26+ docker push ghcr.io/${{ github.repository }}/journal-sdk:latest
You can’t perform that action at this time.
0 commit comments