MukeshKapoor25 commited on
Commit
38e062a
·
1 Parent(s): 622d307

feat(ci): Add Docker Image CI workflow for building images on push and pull request

Browse files
.github/workflows/docker-image-ci.yml ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Docker Image CI
2
+
3
+ on:
4
+ push:
5
+ branches: [ "main" ]
6
+ pull_request:
7
+ branches: [ "main" ]
8
+
9
+ jobs:
10
+
11
+ build:
12
+
13
+ runs-on: ubuntu-latest
14
+
15
+ steps:
16
+ - uses: actions/checkout@v4
17
+ - name: Build the Docker image
18
+ run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)