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 type: docker
name: default name: default
steps: clone:
- name: frontend-web depth: 1
image: node:19
commands:
- cd web
- npm install
- npm run build
- name: upload steps:
image: plugins/s3-sync - name: frontend-web
settings: image: node:19
bucket: msw-artifacts-public commands:
region: ap-southeast-1 - cd web
access_key: - npm install
from_secret: access_key - npm run build
secret_key:
from_secret: secret_key - name: backend
source: web/build image: golang:1.19
target: /msw-open-music/${DRONE_COMMIT} 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}/