Update drone CI upload backend program
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-12-17 16:00:03 +08:00
parent a7230519ff
commit 0ccffe88ce

View File

@@ -2,22 +2,33 @@ kind: pipeline
type: docker
name: default
steps:
- name: frontend-web
image: node:19
commands:
- cd web
- npm install
- npm run build
clone:
depth: 1
- name: upload
image: plugins/s3-sync
settings:
bucket: msw-artifacts-public
region: ap-southeast-1
access_key:
from_secret: access_key
secret_key:
from_secret: secret_key
source: web/build
target: /msw-open-music/${DRONE_COMMIT}
steps:
- name: frontend-web
image: node:19
commands:
- cd web
- npm install
- npm run build
- name: backend
image: golang:1.19
commands:
- go build -v .
environment:
CGO_ENABLED: 0
GOPROXY: goproxy.cn
- name: upload
image: plugins/s3-sync
settings:
bucket: msw-artifacts-public
region: ap-southeast-1
access_key:
from_secret: access_key
secret_key:
from_secret: secret_key
source: msw-open-music
target: /msw-open-music/${DRONE_COMMIT}/