Update drone CI upload backend program
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
19
.drone.yml
19
.drone.yml
@@ -2,15 +2,26 @@ kind: pipeline
|
|||||||
type: docker
|
type: docker
|
||||||
name: default
|
name: default
|
||||||
|
|
||||||
|
clone:
|
||||||
|
depth: 1
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: frontend-web
|
- name: frontend-web
|
||||||
image: node:19
|
image: node:19
|
||||||
commands:
|
commands:
|
||||||
- cd web
|
- cd web
|
||||||
- npm install
|
- npm install
|
||||||
- npm run build
|
- 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
|
image: plugins/s3-sync
|
||||||
settings:
|
settings:
|
||||||
bucket: msw-artifacts-public
|
bucket: msw-artifacts-public
|
||||||
@@ -19,5 +30,5 @@ steps:
|
|||||||
from_secret: access_key
|
from_secret: access_key
|
||||||
secret_key:
|
secret_key:
|
||||||
from_secret: secret_key
|
from_secret: secret_key
|
||||||
source: web/build
|
source: msw-open-music
|
||||||
target: /msw-open-music/${DRONE_COMMIT}
|
target: /msw-open-music/${DRONE_COMMIT}/
|
||||||
|
|||||||
Reference in New Issue
Block a user