|
@@ -13,14 +13,14 @@ server: |
|
|
|
|
|
|
|
|
steps: |
|
|
steps: |
|
|
|
|
|
|
|
|
- name: Build new image |
|
|
|
|
|
commands: |
|
|
|
|
|
- docker build . -f Dockerfile.production --tag="nexus-timers" |
|
|
|
|
|
|
|
|
|
|
|
- name: Stop and destroy old container |
|
|
- name: Stop and destroy old container |
|
|
failure: ignore |
|
|
failure: ignore |
|
|
commands: |
|
|
commands: |
|
|
- docker ps -a | grep nexus-timers | awk '{system ("docker stop " $1); system ("docker rm " $1)}' |
|
|
|
|
|
|
|
|
- docker ps -a | grep nexus-timers | awk '{system ("docker stop " $1); system ("docker rm " $1)}' |
|
|
|
|
|
|
|
|
|
|
|
- name: Build new image |
|
|
|
|
|
commands: |
|
|
|
|
|
- docker build . -f Dockerfile.production --tag="nexus-timers" |
|
|
|
|
|
|
|
|
- name: Launch new container |
|
|
- name: Launch new container |
|
|
commands: |
|
|
commands: |
|
|