GM
Size: a a a
GM
AG
SC
SC
---
.keys_propagation: &deploy_keys
before_script:
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
- eval $(ssh-agent -s)
- echo "$ssh_key" | tr -d '\r' | ssh-add -
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
stages:
- test
- deploy
# Here goes includes from roles
include:
- local: 'playbooks/roles/base/.gitlab-ci.yml'
- local: 'playbooks/roles/update/.gitlab-ci.yml'
- local: 'playbooks/roles/users/.gitlab-ci.yml'
# Test hosts file upon update
test hosts:
stage: test
image: sdesbure/yamllint
script:
- yamllint inventories/hosts
only:
changes:
- inventories/*
АЛ
AS
AG
АЛ
AS
AS
VY
M
АЛ
НК
НК
НК
НК
НК
НК