From 2c9b9ef632d699adfa7d827613841244d212f7d4 Mon Sep 17 00:00:00 2001 From: Georg Pfuetzenreuter Date: Jun 05 2023 22:41:08 +0000 Subject: Test HAProxy in pipeline Run HAProxy test script if relevant files changed. Signed-off-by: Georg Pfuetzenreuter --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2563a0b..01103fc 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -42,6 +42,31 @@ upstream_formulas_show_highstate: rules: - if: $CI_COMMIT_BRANCH && $CI_COMMIT_REF_NAME != "production" +test_haproxy: + image: registry.opensuse.org/opensuse/infrastructure/containers/heroes-salt-testing-haproxy:latest + stage: test + before_script: + - bin/prepare_test_env.sh -i opensuse -g -s + - bin/replace_secrets.sh + - bin/get_formulas.py -c -d /srv/formula -s --clone-from 'https://gitlab.infra.opensuse.org/saltstack-formulas' --clone-branch production -f haproxy + script: bin/test_haproxy.sh + allow_failure: + exit_codes: 2 + tags: + - docker + artifacts: + when: always + paths: + - '*.txt' + rules: + - if: $CI_COMMIT_BRANCH + changes: + - bin/test_haproxy.sh + - pillar/cluster/*/* + - pillar/common/haproxy/* + - salt/profile/proxy/* + - salt/role/proxy* + test_nginx: image: registry.opensuse.org/opensuse/infrastructure/containers/heroes-salt-testing-nginx:latest stage: test