Commit b7ba294 amrutha
committed
1 parent d43ecc1 commit b7ba294 Copy full SHA for b7ba294
File tree 1 file changed +19
-17
lines changed
1 file changed +19
-17
lines changed Original file line number Diff line number Diff line change 1
1
name : Converter CI
2
- on : push:
2
+ on :
3
+ push :
3
4
branches : [ "main" ]
4
- jobs : build:
5
+ jobs :
6
+ build :
5
7
runs-on : ubuntu-latest
6
- steps :
7
- - name : Checkout repository
8
- uses : actions/checkout@v4
9
- - name : Setup Node.js
10
- uses : actions/setup-node@v4
11
- with :
8
+ steps :
9
+ - name : Checkout repository
10
+ uses : actions/checkout@v4
11
+ - name : Setup Node.js
12
+ uses : actions/setup-node@v4
13
+ with :
12
14
node-version : 18
13
- - name : Install dependencies
14
- run : npm install
15
- - name : Run Jest tests
16
- run : npm test
17
- docker :
18
- needs : build
19
- runs-on : ubuntu-latest
20
- steps :
15
+ - name : Install dependencies
16
+ run : npm install
17
+ - name : Run Jest tests
18
+ run : npm test
19
+ docker :
20
+ needs : build
21
+ runs-on : ubuntu-latest
22
+ steps :
21
23
- name : Checkout code
22
24
uses : actions/checkout@v3
23
25
- name : Log in to Docker Hub
@@ -26,6 +28,6 @@ docker:
26
28
username : ${{ secrets.DOCKER_USERNAME }}
27
29
password : ${{ secrets.DOCKER_PASSWORD }}
28
30
- name : Build and push Docker image
29
- run : |
31
+ run : |
30
32
docker build -t amruthsvarshini/amruthaconverter:latest .
31
33
docker push amruthsvarshini/amruthaconverter:latest
You can’t perform that action at this time.
0 commit comments