This commit is contained in:
@@ -18,7 +18,8 @@ steps:
|
||||
image: docker.1ms.run/library/alpine:latest
|
||||
commands:
|
||||
- apk add --no-cache tar
|
||||
- tar czf /tmp/feishu-approval.tar.gz --exclude=.git -C . .
|
||||
- mkdir -p dist
|
||||
- tar czf dist/feishu-approval.tar.gz --exclude=.git --exclude=dist -C . .
|
||||
|
||||
- name: upload
|
||||
image: appleboy/drone-scp
|
||||
@@ -33,7 +34,8 @@ steps:
|
||||
port: 22
|
||||
target: /tmp
|
||||
source:
|
||||
- /tmp/feishu-approval.tar.gz
|
||||
- dist/feishu-approval.tar.gz
|
||||
strip_components: 1
|
||||
overwrite: true
|
||||
|
||||
- name: deploy
|
||||
|
||||
Reference in New Issue
Block a user