Update deployment build step

This commit is contained in:
Keannu Bernasol 2024-10-17 19:10:11 +08:00
parent bb8a2137f6
commit 55a1528f6b

View file

@ -1,10 +1,11 @@
steps: steps:
- name: deploy - name: deploy
image: debian:12.7 image: alpine:3.20
when: when:
- branch: master - branch: master
event: push event: push
commands: commands:
- apk add openssh
- mkdir -p /root/.ssh/ - mkdir -p /root/.ssh/
- echo "$WOODPECKER_SSH_KEY" | tr -d '\r' > /root/.ssh/id_rsa - echo "$WOODPECKER_SSH_KEY" | tr -d '\r' > /root/.ssh/id_rsa
- chmod 600 /root/.ssh/id_rsa - chmod 600 /root/.ssh/id_rsa