File tree 1 file changed +35
-0
lines changed
1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Docker Image CI
2
+
3
+ on :
4
+ push :
5
+ branches : [ "main" ]
6
+ pull_request :
7
+ branches : [ "main" ]
8
+
9
+ jobs :
10
+ build-and-push :
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - uses : actions/checkout@v4
14
+
15
+ - name : Log in to Docker Hub
16
+ uses : docker/login-action@v3
17
+ with :
18
+ username : ${{ secrets.DOCKER_HUB_USERNAME }}
19
+ password : ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
20
+
21
+ - name : Set up Docker Buildx
22
+ uses : docker/setup-buildx-action@v3
23
+
24
+ - name : Build and push Docker image
25
+ uses : docker/build-push-action@v5
26
+ with :
27
+ context : .
28
+ file : ./Dockerfile
29
+ push : true
30
+ tags : |
31
+ cognitivelab/omniparse:latest
32
+ cognitivelab/omniparse:${{ github.sha }}
33
+
34
+ - name : Image digest
35
+ run : echo ${{ steps.docker_build.outputs.digest }}
You can’t perform that action at this time.
0 commit comments