Skip to content

Commit b7ba294

Browse files
author
amrutha
committed
updated docker file
1 parent d43ecc1 commit b7ba294

File tree

1 file changed

+19
-17
lines changed

1 file changed

+19
-17
lines changed

.github/workflows/ci.yml

+19-17
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,25 @@
11
name: Converter CI
2-
on: push:
2+
on:
3+
push:
34
branches: [ "main" ]
4-
jobs: build:
5+
jobs:
6+
build:
57
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:
1214
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:
2123
- name: Checkout code
2224
uses: actions/checkout@v3
2325
- name: Log in to Docker Hub
@@ -26,6 +28,6 @@ docker:
2628
username: ${{ secrets.DOCKER_USERNAME }}
2729
password: ${{ secrets.DOCKER_PASSWORD }}
2830
- name: Build and push Docker image
29-
run: |
31+
run: |
3032
docker build -t amruthsvarshini/amruthaconverter:latest .
3133
docker push amruthsvarshini/amruthaconverter:latest

0 commit comments

Comments
 (0)