Run CI pipeline test with Alpine
continuous-integration/drone/push Build is failing Details

This commit is contained in:
kayomn 2023-08-19 19:49:13 +01:00
parent 22570b24ba
commit f6fca429d5
1 changed files with 3 additions and 6 deletions

View File

@ -9,7 +9,7 @@ steps:
command: ["build"] command: ["build"]
- name: deploy - name: deploy
image: ubuntu image: alpine:latest
environment: environment:
HOST: HOST:
@ -26,12 +26,9 @@ steps:
- main - main
commands: commands:
- apt-get update -qq > /dev/null - apt-get update
- apt-get install ssh rsync -qq > /dev/null - apt-get add openssh rsync
- eval $(ssh-agent -s) - eval $(ssh-agent -s)
- mkdir -p ~/.ssh - mkdir -p ~/.ssh
- echo "$RSYNC_KEY" > ~/.ssh/id_rsa - echo "$RSYNC_KEY" > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa - chmod 600 ~/.ssh/id_rsa
- ssh-add
- echo "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
- rsync -rP public/ "$${USER}@$${HOST}:$${PATH}"