Skip to content
Snippets Groups Projects
.gitlab-ci.yml 613 B
Newer Older
image: base/archlinux

stages:
  - check
#  - test
#  - deploy

before_script:
  - ./extensions/setup/setup.sh

check:
  stage: check
  script:
    - cd plays
    - ansible-lint *.yml
    - echo $ANSIBLE_VAULT_PASSWORD > ../.vpass
Klaus Frank's avatar
Klaus Frank committed
    - ansible-playbook *.yml --vault-password-file ../.vpass --syntax-check -i ../development.ini

#test:
#  stage: test
#  script:
#    # Deploy the role in test environment.
#    - sudo ./plays/testing-play-examplePlay.sh

#deploy:
#  stage: deploy
#  script:
#    # TODO: Create environment in GitLab for deployment, only master branch
#    - ./plays/testing-play-examplePlay.sh