|
@@ -16,30 +16,22 @@ steps:
|
|
|
when:
|
|
|
branch:
|
|
|
- master
|
|
|
-- name: publish-ui
|
|
|
- image: appleboy/drone-scp
|
|
|
+- name: upload
|
|
|
+ image: plugins/s3
|
|
|
volumes:
|
|
|
- name: build
|
|
|
path: /build/
|
|
|
settings:
|
|
|
- host: hiram.services
|
|
|
- username: hiram
|
|
|
- key:
|
|
|
- from_secret: ssh_key
|
|
|
- port: 355
|
|
|
- target: "/opt/ts3/status/build-$(date +'%Y-%m-%dT%H:%M:%S')"
|
|
|
- source: /build
|
|
|
-- name: deploy-ui
|
|
|
- image: appleboy/drone-ssh
|
|
|
- settings:
|
|
|
- host: hiram.services
|
|
|
- username: hiram
|
|
|
- key:
|
|
|
- from_secret: ssh_key
|
|
|
- port: 355
|
|
|
- script:
|
|
|
- - cd /opt/ts3/status/
|
|
|
- - ./update.sh
|
|
|
+ access_key:
|
|
|
+ from_secret: minio_access_key
|
|
|
+ secret_key:
|
|
|
+ from_secret: minio_secret_key
|
|
|
+ bucket: ts-status
|
|
|
+ source: /build/**/*
|
|
|
+ strip_prefix: /build
|
|
|
+ target: /teamspeak
|
|
|
+ path_style: true
|
|
|
+ endpoint: http://192.168.0.5:29000
|
|
|
|
|
|
volumes:
|
|
|
- name: build
|