CI: Skip AWS test if bucket missing

The osbuild CI uses the osbuild-composer CI testing playbooks but
there's no need to run the EC2 import for osbuild's CI. Add a check in
the Ansible playbook to look for the AWS_BUCKET environment variable and
skip the EC2 import if the bucker variable is missing.

Signed-off-by: Major Hayden <major@redhat.com>
This commit is contained in:
Major Hayden 2020-05-20 13:07:26 -05:00 committed by Major Hayden
parent 63c59b2ca1
commit 62f61d34c2

View file

@ -36,6 +36,8 @@
loop_var: test_case
when:
- test_type == 'image'
# Don't run the AWS test if the bucket env var is not set.
- (lookup('env', 'AWS_BUCKET') | default(false)) | bool
- name: Show failed and passed tests
debug: