From 6e16c5c7705f19864fef8b15ca4d9df0bad77b1d Mon Sep 17 00:00:00 2001 From: Noah Knegt Date: Fri, 31 Mar 2023 10:37:40 +0200 Subject: [PATCH 1/2] Use the infra tag for docker Signed-off-by: Noah Knegt --- .drone.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index a1da8f9..e756b1e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -15,7 +15,7 @@ steps: - ansible-lint . - name: setup ssh key - image: cytopia/ansible:latest-tools + image: cytopia/ansible:latest-infra commands: - mkdir -p /root/.ssh - echo "$SSH_KEY" > /root/.ssh/id_ed25519 @@ -34,7 +34,7 @@ steps: - master - name: ansible apply - image: cytopia/ansible:latest-tools + image: cytopia/ansible:latest-infra commands: - ansible-playbook -i inventory/hosts.yml site.yml --private-key /root/.ssh/id_ed25519 volumes: -- 2.49.1 From 5fd111913e9a35a724ad428fb9861399339e3606 Mon Sep 17 00:00:00 2001 From: Noah Knegt Date: Fri, 31 Mar 2023 10:41:53 +0200 Subject: [PATCH 2/2] Add ssh key to the ssh agent Signed-off-by: Noah Knegt --- .drone.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index e756b1e..a2c09cc 100644 --- a/.drone.yml +++ b/.drone.yml @@ -36,7 +36,8 @@ steps: - name: ansible apply image: cytopia/ansible:latest-infra commands: - - ansible-playbook -i inventory/hosts.yml site.yml --private-key /root/.ssh/id_ed25519 + - ssh-add /root/.ssh/id_ed25519 + - ansible-playbook -i inventory/hosts.yml site.yml volumes: - name: ssh_key path: /root/.ssh -- 2.49.1