|
|
5884cc |
image: registry.opensuse.org/opensuse/infrastructure/containers/heroes-salt-testing:latest
|
|
|
5884cc |
|
|
|
f6b82d |
stages:
|
|
Theo Chatzimichos |
b4fa0d |
- validate
|
|
|
aa384d |
- test
|
|
|
f6b82d |
- deploy
|
|
|
f6b82d |
|
|
Theo Chatzimichos |
b4fa0d |
validate:
|
|
Theo Chatzimichos |
b4fa0d |
stage: validate
|
|
Theo Chatzimichos |
02fadf |
before_script:
|
|
Theo Chatzimichos |
15a116 |
- bin/prepare_test_env.sh -i opensuse
|
|
Theo Chatzimichos |
15a116 |
script: bin/test_validate.sh
|
|
Theo Chatzimichos |
15a116 |
tags:
|
|
Theo Chatzimichos |
15a116 |
- docker
|
|
|
c8e6da |
rules:
|
|
|
c8e6da |
- if: $CI_COMMIT_BRANCH
|
|
Theo Chatzimichos |
15a116 |
|
|
|
86fbd9 |
show_highstate:
|
|
Theo Chatzimichos |
15a116 |
stage: validate
|
|
Theo Chatzimichos |
15a116 |
before_script:
|
|
|
d6cb32 |
- bin/prepare_test_env.sh -i opensuse -g -o Leap,15,4 -s
|
|
Theo Chatzimichos |
15a116 |
- bin/get_formulas.py -c -d /srv/formula -s --clone-from 'https://gitlab.infra.opensuse.org/saltstack-formulas' --clone-branch production
|
|
Theo Chatzimichos |
15a116 |
script: bin/test_show_highstate.sh
|
|
Theo Chatzimichos |
02fadf |
tags:
|
|
Theo Chatzimichos |
02fadf |
- docker
|
|
|
86fbd9 |
artifacts:
|
|
|
86fbd9 |
#when: on_failure
|
|
|
86fbd9 |
paths:
|
|
|
86fbd9 |
- '*.txt'
|
|
|
c8e6da |
rules:
|
|
|
c8e6da |
- if: $CI_COMMIT_BRANCH
|
|
Theo Chatzimichos |
02fadf |
|
|
Theo Chatzimichos |
f89311 |
upstream_formulas_show_highstate:
|
|
Theo Chatzimichos |
b4fa0d |
stage: validate
|
|
Theo Chatzimichos |
1f0a34 |
before_script:
|
|
Theo Chatzimichos |
759754 |
- bin/prepare_test_env.sh -i opensuse -g
|
|
Theo Chatzimichos |
4af2b2 |
- bin/get_formulas.py -c -d /srv/formula -s
|
|
Theo Chatzimichos |
82e979 |
script: bin/test_show_highstate.sh
|
|
Theo Chatzimichos |
5d3700 |
allow_failure: true
|
|
Theo Chatzimichos |
5d3700 |
tags:
|
|
Theo Chatzimichos |
5d3700 |
- docker
|
|
|
c8e6da |
rules:
|
|
|
c8e6da |
- if: $CI_COMMIT_BRANCH && $CI_COMMIT_REF_NAME != "production"
|
|
Theo Chatzimichos |
5d3700 |
|
|
|
2c9b9e |
test_haproxy:
|
|
|
2c9b9e |
image: registry.opensuse.org/opensuse/infrastructure/containers/heroes-salt-testing-haproxy:latest
|
|
|
2c9b9e |
stage: test
|
|
|
2c9b9e |
before_script:
|
|
|
2c9b9e |
- bin/prepare_test_env.sh -i opensuse -g -s
|
|
|
2c9b9e |
- bin/replace_secrets.sh
|
|
|
2c9b9e |
- bin/get_formulas.py -c -d /srv/formula -s --clone-from 'https://gitlab.infra.opensuse.org/saltstack-formulas' --clone-branch production -f haproxy
|
|
|
2c9b9e |
script: bin/test_haproxy.sh
|
|
|
2c9b9e |
allow_failure:
|
|
|
2c9b9e |
exit_codes: 2
|
|
|
2c9b9e |
tags:
|
|
|
2c9b9e |
- docker
|
|
|
2c9b9e |
artifacts:
|
|
|
2c9b9e |
when: always
|
|
|
2c9b9e |
paths:
|
|
|
2c9b9e |
- '*.txt'
|
|
|
2c9b9e |
rules:
|
|
|
2c9b9e |
- if: $CI_COMMIT_BRANCH
|
|
|
2c9b9e |
changes:
|
|
|
2c9b9e |
- bin/test_haproxy.sh
|
|
|
2c9b9e |
- pillar/cluster/*/*
|
|
|
2c9b9e |
- pillar/common/haproxy/*
|
|
|
2c9b9e |
- salt/profile/proxy/*
|
|
|
2c9b9e |
- salt/role/proxy*
|
|
|
2c9b9e |
|
|
Theo Chatzimichos |
79c2f8 |
test_nginx:
|
|
|
5884cc |
image: registry.opensuse.org/opensuse/infrastructure/containers/heroes-salt-testing-nginx:latest
|
|
Theo Chatzimichos |
79c2f8 |
stage: test
|
|
Theo Chatzimichos |
79c2f8 |
before_script:
|
|
|
5884cc |
- bin/prepare_test_env.sh -i opensuse -g
|
|
Theo Chatzimichos |
cefed1 |
- bin/get_formulas.py -c -d /srv/formula -s --clone-from 'https://gitlab.infra.opensuse.org/saltstack-formulas' --clone-branch production -f nginx
|
|
Theo Chatzimichos |
79c2f8 |
script: bin/test_nginx.sh
|
|
Theo Chatzimichos |
79c2f8 |
tags:
|
|
Theo Chatzimichos |
79c2f8 |
- docker
|
|
|
c8e6da |
rules:
|
|
|
c8e6da |
- if: $CI_COMMIT_BRANCH
|
|
Theo Chatzimichos |
79c2f8 |
|
|
Theo Chatzimichos |
712c78 |
test_sudo:
|
|
Theo Chatzimichos |
712c78 |
stage: test
|
|
Theo Chatzimichos |
712c78 |
before_script:
|
|
|
5884cc |
- bin/prepare_test_env.sh -i opensuse -g
|
|
Theo Chatzimichos |
712c78 |
- bin/get_formulas.py -c -d /srv/formula -s --clone-from 'https://gitlab.infra.opensuse.org/saltstack-formulas' --clone-branch production
|
|
Theo Chatzimichos |
712c78 |
script: bin/test_sudo.sh
|
|
Theo Chatzimichos |
712c78 |
tags:
|
|
Theo Chatzimichos |
712c78 |
- docker
|
|
|
c8e6da |
rules:
|
|
|
c8e6da |
- if: $CI_COMMIT_BRANCH
|
|
Theo Chatzimichos |
712c78 |
|
|
|
f6b82d |
deploy_job:
|
|
|
f6b82d |
stage: deploy
|
|
Theo Chatzimichos |
d12b82 |
script: sudo salt-call event.fire_master $CI_DEPLOY_PASSWORD salt/fileserver/gitfs/update
|
|
|
f6b82d |
tags:
|
|
|
a493ec |
- salt-deploy
|
|
|
c8e6da |
rules:
|
|
|
c8e6da |
- if: $CI_COMMIT_BRANCH == "production"
|