Update woodpecker.yml

This commit is contained in:
Keannu Bernasol 2023-12-04 19:21:15 +08:00
parent 70fb033658
commit bee6ecfe2c

View file

@ -1,4 +1,5 @@
pipeline: # .woodpecker.yml
steps:
- name: build - name: build
image: node:14 image: node:14
commands: commands:
@ -6,9 +7,6 @@ pipeline:
- npm run build - npm run build
- name: copy - name: copy
image: alpine image: alpine
environment:
- SSH_KEY:
from_secret: ssh_key
commands: commands:
- apk add --no-cache openssh-client - apk add --no-cache openssh-client
- echo "$SSH_KEY" | tr -d '\r' > /root/.ssh/id_rsa - echo "$SSH_KEY" | tr -d '\r' > /root/.ssh/id_rsa