File tree 1 file changed +20
-7
lines changed
1 file changed +20
-7
lines changed Original file line number Diff line number Diff line change @@ -3,16 +3,29 @@ name: Docker Image CI
3
3
on :
4
4
push :
5
5
branches : [ "main" ]
6
- pull_request :
7
- branches : [ "main" ]
8
6
9
7
jobs :
10
-
11
8
build :
12
-
13
9
runs-on : ubuntu-latest
14
10
15
11
steps :
16
- - uses : actions/checkout@v4
17
- - name : Build the Docker image
18
- run : docker build . --file Dockerfile --tag my-image-name:$(date +%s)
12
+ - name : Checkout
13
+ uses : actions/checkout@v4
14
+
15
+ - name : Login to Docker Hub
16
+ uses : docker/login-action@v3
17
+ with :
18
+ username : ${{ secrets.DOCKERHUB_USERNAME }}
19
+ password : ${{ secrets.DOCKERHUB_PASSWORD }}
20
+ -
21
+ name : Set up Docker Buildx
22
+ uses : docker/setup-buildx-action@v3
23
+ -
24
+ name : Build and push
25
+ uses : docker/build-push-action@v5
26
+ with :
27
+ context : .
28
+ file : ./Dockerfile
29
+ push : true
30
+ tags : |
31
+ modularminds/flexibase-db:latest
You can’t perform that action at this time.
0 commit comments