remove separate stage for environment setup
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Torma Kristóf 2023-07-25 17:24:33 +02:00
parent 43b95bc129
commit 95f4eae305

View File

@ -4,15 +4,6 @@ type: docker
name: ansible name: ansible
steps: steps:
- name: setup environment
image: ubuntu
environment:
SSH_KEY:
from_secret: SSH_KEY
commands:
- echo "$PWD"
- echo "$SSH_KEY" > $PWD/id_rsa && chmod 0600 $PWD/id_rsa
- name: ansible nightly run - name: ansible nightly run
image: alpinelinux/ansible image: alpinelinux/ansible
environment: environment:
@ -21,7 +12,10 @@ steps:
ANSIBLE_CONFIG: "/drone/src/ansible.cfg" ANSIBLE_CONFIG: "/drone/src/ansible.cfg"
CLOUDFLARE_TOKEN: CLOUDFLARE_TOKEN:
from_secret: CLOUDFLARE_TOKEN from_secret: CLOUDFLARE_TOKEN
SSH_KEY:
from_secret: SSH_KEY
commands: commands:
- echo "$SSH_KEY" > $PWD/id_rsa && chmod 0600 $PWD/id_rsa
- ansible-galaxy collection install -r requirements.yaml - ansible-galaxy collection install -r requirements.yaml
- ansible-playbook -i inventory.yaml nightly.yaml - ansible-playbook -i inventory.yaml nightly.yaml
... ...