fix(): Adds failsafe to the check mode
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/promote/production Build is passing

This fixes the first deployment problem.
This commit is contained in:
Elia el Lazkani 2023-07-01 19:08:30 +02:00
parent 13b4974f0e
commit 226479495e
3 changed files with 4 additions and 1 deletions

View file

@ -90,7 +90,7 @@ steps:
check: true check: true
diff: true diff: true
syntax_check: false syntax_check: false
extra_vars: "blog_container_tag=${DRONE_COMMIT_SHA:0:8}" extra_vars: "blog_container_tag=${DRONE_COMMIT_SHA:0:8},check_mode=true"
private_key: private_key:
from_secret: ansible_private_key from_secret: ansible_private_key
user: user:

View file

@ -1,3 +1,5 @@
--- ---
check_mode: false
blog_container_tag: "latest" blog_container_tag: "latest"
blog_http_port: 8080 blog_http_port: 8080

View file

@ -31,3 +31,4 @@
- assert: - assert:
that: that:
- output_blog.services.blog.blog.state.running - output_blog.services.blog.blog.state.running
when: not check_mode