From 95f4eae30564d4b4bff6bea50ac09a83559f376d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Tue, 25 Jul 2023 17:24:33 +0200 Subject: [PATCH] remove separate stage for environment setup --- .drone.yml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.drone.yml b/.drone.yml index ce70ecf..0a6c35d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -4,15 +4,6 @@ type: docker name: ansible 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 image: alpinelinux/ansible environment: @@ -21,7 +12,10 @@ steps: ANSIBLE_CONFIG: "/drone/src/ansible.cfg" CLOUDFLARE_TOKEN: from_secret: CLOUDFLARE_TOKEN + SSH_KEY: + from_secret: SSH_KEY commands: + - echo "$SSH_KEY" > $PWD/id_rsa && chmod 0600 $PWD/id_rsa - ansible-galaxy collection install -r requirements.yaml - ansible-playbook -i inventory.yaml nightly.yaml ... \ No newline at end of file