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