Use alpine image in deploy step
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Sam A. 2023-03-21 19:19:32 +01:00
parent 873436c8d9
commit 7bf7520ea0
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA

View file

@ -13,11 +13,12 @@ steps:
- hugo - hugo
- name: deploy - name: deploy
image: alpine/git:latest image: alpine:latest
environment: environment:
SSH_KEY: SSH_KEY:
from_secret: ssh_key from_secret: ssh_key
commands: commands:
- apk add --no-cache openssh-client rsync
- mkdir ~/.ssh - mkdir ~/.ssh
- echo "$${SSH_KEY}" > ~/.ssh/id_ed25519 - echo "$${SSH_KEY}" > ~/.ssh/id_ed25519
- chmod 600 ~/.ssh/id_ed25519 - chmod 600 ~/.ssh/id_ed25519