Prevent build crashing due to non-existing container

This commit is contained in:
Yarmo Mackenbach 2020-08-09 12:37:04 +02:00
parent a8e373d12c
commit 14581cf642

View file

@ -49,8 +49,7 @@ steps:
- docker pull keyoxide/keyoxide:dev - docker pull keyoxide/keyoxide:dev
- name: stop and remove existing docker container - name: stop and remove existing docker container
commands: commands:
- docker stop keyoxide-web - docker stop keyoxide-web || true && docker rm keyoxide-web || true
- docker rm keyoxide-web
- name: run new docker container - name: run new docker container
environment: environment:
TWITTER_API_AUTH: TWITTER_API_AUTH: