Archived
1
0
This repository has been archived on 2022-11-10. You can view files and clone it, but cannot push or open issues or pull requests.
www.ykn.fr/.drone.yml

88 lines
2.4 KiB
YAML
Raw Normal View History

kind: pipeline
type: exec
name: default
trigger:
event:
- cron
- custom
- promote
- push
platform:
os: linux
arch: arm64
concurrency:
limit: 1
steps:
- name: ansible-inventory
commands:
- git clone -b alpha https://gitea.ykn.fr/ansible/inventory.git .ansible/configuration
- name: ansible-vault
environment:
ANSIBLE_VAULT_PASSWORD:
from_secret: ANSIBLE_VAULT_PASSWORD
commands:
- echo $ANSIBLE_VAULT_PASSWORD > .ansible/configuration/vault-password
- name: ansible-galaxy
commands:
- ansible-galaxy install -r .ansible/requirements.yml -p .ansible/roles
- name: ansible-playbook/check
environment:
ANSIBLE_CONFIG: .ansible/configuration/ansible.cfg
commands:
- ansible-playbook .ansible/run.yml --tags check_targets --limit 'ykn-www-2245.nyx.ykn.local,nyx_rproxies'
- name: ansible-playbook/hugo
environment:
ANSIBLE_CONFIG: .ansible/configuration/ansible.cfg
commands:
- ansible-playbook .ansible/run.yml --tags install_hugo
- name: ansible-playbook/build
environment:
ANSIBLE_CONFIG: .ansible/configuration/ansible.cfg
commands:
- ansible-playbook .ansible/run.yml --tags build
- name: ansible-playbook/upload
environment:
ANSIBLE_CONFIG: .ansible/configuration/ansible.cfg
commands:
- ansible-playbook .ansible/run.yml --tags upload
- name: ansible-playbook/nginx
environment:
ANSIBLE_CONFIG: .ansible/configuration/ansible.cfg
commands:
- ansible-playbook .ansible/run.yml --tags deploy_nginx --limit 'ykn-www-2245.nyx.ykn.local'
- name: ansible-playbook/deploy
environment:
ANSIBLE_CONFIG: .ansible/configuration/ansible.cfg
commands:
- ansible-playbook .ansible/run.yml --tags deploy --limit 'ykn-www-2245.nyx.ykn.local'
- name: ansible-playbook/clean_cache
environment:
ANSIBLE_CONFIG: .ansible/configuration/ansible.cfg
commands:
- ansible-playbook .ansible/run.yml --tags clean_cache --limit 'nyx_rproxies'
- name: ansible-playbook/clean_releases
environment:
ANSIBLE_CONFIG: .ansible/configuration/ansible.cfg
commands:
- ansible-playbook .ansible/run.yml --tags clean_releases
- name: ansible-playbook/clean_tags
environment:
ANSIBLE_CONFIG: .ansible/configuration/ansible.cfg
commands:
- ansible-playbook .ansible/run.yml --tags clean_tags