|
|
@ -1,3 +1,4 @@
|
|
|
|
|
|
|
|
```
|
|
|
|
[root@localhost config]# cat config.toml
|
|
|
|
[root@localhost config]# cat config.toml
|
|
|
|
concurrent = 5
|
|
|
|
concurrent = 5
|
|
|
|
check_interval = 0
|
|
|
|
check_interval = 0
|
|
|
@ -80,4 +81,5 @@ deploy-job: # This job runs in the deploy stage.
|
|
|
|
- docker build -t $IMAGE_NAME .
|
|
|
|
- docker build -t $IMAGE_NAME .
|
|
|
|
- if [ $(docker ps -qa --filter name=$APP_NAME ) ];then docker rm -f $APP_NAME; fi
|
|
|
|
- if [ $(docker ps -qa --filter name=$APP_NAME ) ];then docker rm -f $APP_NAME; fi
|
|
|
|
- docker run -d -p 8088:80 --name $APP_NAME $IMAGE_NAME
|
|
|
|
- docker run -d -p 8088:80 --name $APP_NAME $IMAGE_NAME
|
|
|
|
- echo "Application successfully deployed."
|
|
|
|
- echo "Application successfully deployed."
|
|
|
|
|
|
|
|
```
|