Fix the volume mounts
Some checks failed
continuous-integration/drone/push Build is failing

Signed-off-by: Noah Knegt <git@noahknegt.com>
This commit is contained in:
2023-03-31 10:22:57 +02:00
parent eabd5b39a7
commit f9d25cd0f4

View File

@@ -17,17 +17,17 @@ steps:
- name: setup ssh key - name: setup ssh key
image: alpine:latest image: alpine:latest
commands: commands:
- mkdir -p $HOME/.ssh - mkdir -p /root/.ssh
- echo "$SSH_KEY" > $HOME/.ssh/id_ed25519 - echo "$SSH_KEY" > /root/.ssh/id_ed25519
- chmod 600 $HOME/.ssh/id_ed25519 - chmod 600 /root/.ssh/id_ed25519
- ssh-keyscan -p 4422 vps.noahknegt.com > $HOME/.ssh/known_hosts - ssh-keyscan -p 4422 vps.noahknegt.com > /root/.ssh/known_hosts
- ssh -p 4422 vps.noahknegt.com "echo 'SSH connection established'" - ssh -p 4422 vps.noahknegt.com "echo 'SSH connection established'"
environment: environment:
SSH_KEY: SSH_KEY:
from_secret: ssh_key from_secret: ssh_key
volumes: volumes:
- name: ssh_key - name: ssh_key
path: $HOME/.ssh path: /root/.ssh
- name: ansible apply - name: ansible apply
image: cytopia/ansible:latest-tools image: cytopia/ansible:latest-tools
@@ -35,7 +35,7 @@ steps:
- ansible-playbook -i inventory/hosts.yml site.yml - ansible-playbook -i inventory/hosts.yml site.yml
volumes: volumes:
- name: ssh_key - name: ssh_key
path: $HOME/.ssh path: /root/.ssh
when: when:
event: event:
- push - push