Skip to content

Commit 2bb41c6

Browse files
committed
config.yml
1 parent 118590b commit 2bb41c6

File tree

1 file changed

+17
-19
lines changed

1 file changed

+17
-19
lines changed

.circleci/config.yml

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,25 @@ jobs:
55
machine:
66
image: ubuntu-2204:current
77
steps:
8-
9-
checkout
10-
run:
11-
name: Build Docker image
12-
command: docker build -t node-js-server .
13-
run:
14-
name: list image
15-
command: docker image list
16-
run:
17-
name: Run Docker container
18-
command: docker run -d -p 8080:8080 --name node-js-server-container node-js-server
19-
run:
20-
name: Wait for the server to start
21-
command: sleep 5
22-
run:
23-
name: Test the application with wget
24-
command: wget -qO- http://localhost:8080/
8+
- checkout
9+
- run:
10+
name: Build Docker image
11+
command: docker build -t node-js-server .
12+
- run:
13+
name: List Docker images
14+
command: docker image list
15+
- run:
16+
name: Run Docker container
17+
command: docker run -d -p 8080:8080 --name node-js-server-container node-js-server
18+
- run:
19+
name: Wait for the server to start
20+
command: sleep 5
21+
- run:
22+
name: Test the application with wget
23+
command: wget -qO- http://localhost:8080/
2524

2625
workflows:
2726
version: 2
2827
build-and-deploy:
2928
jobs:
30-
31-
build
29+
- build

0 commit comments

Comments
 (0)