76be9c
# You can override the included template(s) by including variable overrides
76be9c
# SAST customization: https://docs.gitlab.com/ee/user/application_security/sast/#customizing-the-sast-settings
76be9c
# Secret Detection customization: https://docs.gitlab.com/ee/user/application_security/secret_detection/#customizing-settings
76be9c
# Dependency Scanning customization: https://docs.gitlab.com/ee/user/application_security/dependency_scanning/#customizing-the-dependency-scanning-settings
76be9c
# Note that environment variables can be set in several places
76be9c
# See https://docs.gitlab.com/ee/ci/variables/#cicd-variable-precedence
5884cc
image: registry.opensuse.org/opensuse/infrastructure/containers/heroes-salt-testing:latest
5884cc
variables:
5884cc
  DOCKER_DRIVER: overlay2
f6b82d
stages:
76be9c
- validate
76be9c
- test
76be9c
- deploy
Theo Chatzimichos b4fa0d
validate:
Theo Chatzimichos b4fa0d
  stage: validate
Theo Chatzimichos 02fadf
  before_script:
76be9c
  - bin/prepare_test_env.sh -i opensuse
Theo Chatzimichos 15a116
  script: bin/test_validate.sh
Theo Chatzimichos 15a116
  tags:
76be9c
  - docker
5884cc
leap15.2_show_highstate:
Theo Chatzimichos 15a116
  stage: validate
Theo Chatzimichos 15a116
  before_script:
76be9c
  - bin/prepare_test_env.sh -i opensuse -g -o Leap,15,2
76be9c
  - bin/get_formulas.py -c -d /srv/formula -s --clone-from 'https://gitlab.infra.opensuse.org/saltstack-formulas'
76be9c
    --clone-branch production
Theo Chatzimichos 15a116
  script: bin/test_show_highstate.sh
Theo Chatzimichos 02fadf
  tags:
76be9c
  - docker
Theo Chatzimichos f89311
upstream_formulas_show_highstate:
Theo Chatzimichos b4fa0d
  stage: validate
Theo Chatzimichos 1f0a34
  before_script:
76be9c
  - bin/prepare_test_env.sh -i opensuse -g
76be9c
  - 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 dc66cf
  except:
76be9c
  - production@infra/salt
Theo Chatzimichos 5d3700
  tags:
76be9c
  - docker
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:
76be9c
  - bin/prepare_test_env.sh -i opensuse -g
76be9c
  - bin/get_formulas.py -c -d /srv/formula -s --clone-from 'https://gitlab.infra.opensuse.org/saltstack-formulas'
76be9c
    --clone-branch production -f nginx
Theo Chatzimichos 79c2f8
  script: bin/test_nginx.sh
Theo Chatzimichos 79c2f8
  tags:
76be9c
  - docker
Theo Chatzimichos 712c78
test_sudo:
Theo Chatzimichos 712c78
  stage: test
Theo Chatzimichos 712c78
  before_script:
76be9c
  - bin/prepare_test_env.sh -i opensuse -g
76be9c
  - bin/get_formulas.py -c -d /srv/formula -s --clone-from 'https://gitlab.infra.opensuse.org/saltstack-formulas'
76be9c
    --clone-branch production
Theo Chatzimichos 712c78
  script: bin/test_sudo.sh
Theo Chatzimichos 712c78
  tags:
76be9c
  - docker
f6b82d
deploy_job:
f6b82d
  stage: deploy
Theo Chatzimichos d12b82
  script: sudo salt-call event.fire_master $CI_DEPLOY_PASSWORD salt/fileserver/gitfs/update
f6b82d
  only:
76be9c
  - production@infra/salt
f6b82d
  tags:
76be9c
  - salt-deploy
76be9c
include:
76be9c
- template: Auto-DevOps.gitlab-ci.yml