File tree Expand file tree Collapse file tree 1 file changed +17
-19
lines changed Expand file tree Collapse file tree 1 file changed +17
-19
lines changed Original file line number Diff line number Diff line change 5
5
machine :
6
6
image : ubuntu-2204:current
7
7
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/
25
24
26
25
workflows :
27
26
version : 2
28
27
build-and-deploy :
29
28
jobs :
30
-
31
- build
29
+ - build
You can’t perform that action at this time.
0 commit comments