-
Notifications
You must be signed in to change notification settings - Fork 7
/
check-imagestreams.yml
48 lines (46 loc) · 1.32 KB
/
check-imagestreams.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
- name: Test the latest imagestreams in repo
hosts: localhost
vars:
testing_dir: "/tmp/rhscl_openshift_dir"
github_repo: "{{ lookup('env', 'GITHUB_REPO')}}"
tasks:
- name: Check temporary directory
block:
- name: Remove directory
file:
state: absent
path: "{{ testing_dir }}"
- name: Create temporary directory
file:
state: directory
path: "{{ testing_dir }}"
- block:
- name: Check if KUBECONFIG is defined
command: echo "$KUBECONFIG"
register: kube
# - name: check if kubeconfig is set
# assert:
# that:
# - kube.stdout != ""
# msg: "KUBECONFIG is not defined"
# changed_when: false
# ignore_errors: no
- name: Set default fact
set_fact:
streams_failed: {}
- name: Clone and test upstream container repositories
include_tasks: ./tasks/verify_imagestreams.yml
loop:
- httpd-container
- mariadb-container
- mysql-container
- nginx-container
- postgresql-container
- s2i-nodejs-container
- s2i-perl-container
- s2i-python-container
- s2i-ruby-container
- fail:
msg: Wrong imagestreams {{ streams_failed }}
when: streams_failed|length != 0