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,15 +2,26 @@ kind: pipeline
type: docker
name: default
clone:
depth: 1
steps:
- name: frontend-web
- name: frontend-web
image: node:19
commands:
- cd web
- npm install
- npm run build
- name: upload
- 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
@@ -19,5 +30,5 @@ steps:
from_secret: access_key
secret_key:
from_secret: secret_key
source: web/build
target: /msw-open-music/${DRONE_COMMIT}
source: msw-open-music
target: /msw-open-music/${DRONE_COMMIT}/