fix: add unique step names per pipeline
This commit is contained in:
20
.drone.yml
20
.drone.yml
@@ -10,7 +10,7 @@ trigger:
|
|||||||
- dev
|
- dev
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: clone
|
- name: dev-clone
|
||||||
image: ccr.ccs.tencentyun.com/violin/git-alpine:latest
|
image: ccr.ccs.tencentyun.com/violin/git-alpine:latest
|
||||||
settings:
|
settings:
|
||||||
username:
|
username:
|
||||||
@@ -18,17 +18,17 @@ steps:
|
|||||||
password:
|
password:
|
||||||
from_secret: git_password
|
from_secret: git_password
|
||||||
|
|
||||||
- name: install
|
- name: dev-install
|
||||||
image: node:18-alpine
|
image: node:18-alpine
|
||||||
commands:
|
commands:
|
||||||
- npm install
|
- npm install
|
||||||
|
|
||||||
- name: build
|
- name: dev-build
|
||||||
image: node:18-alpine
|
image: node:18-alpine
|
||||||
commands:
|
commands:
|
||||||
- npm run build:h5
|
- npm run build:h5
|
||||||
|
|
||||||
- name: build-image
|
- name: dev-build-image
|
||||||
image: ccr.ccs.tencentyun.com/violin/docker:linux-amd64
|
image: ccr.ccs.tencentyun.com/violin/docker:linux-amd64
|
||||||
settings:
|
settings:
|
||||||
repo: ccr.ccs.tencentyun.com/violin/todo-frontend
|
repo: ccr.ccs.tencentyun.com/violin/todo-frontend
|
||||||
@@ -40,7 +40,7 @@ steps:
|
|||||||
password:
|
password:
|
||||||
from_secret: registry_password
|
from_secret: registry_password
|
||||||
|
|
||||||
- name: deploy-to-k8s
|
- name: dev-deploy
|
||||||
image: ccr.ccs.tencentyun.com/violin/kubectl:latest
|
image: ccr.ccs.tencentyun.com/violin/kubectl:latest
|
||||||
commands:
|
commands:
|
||||||
- kubectl set image deployment/todo-frontend todo-frontend=ccr.ccs.tencentyun.com/violin/todo-frontend:${DRONE_COMMIT_SHA} -n drone
|
- kubectl set image deployment/todo-frontend todo-frontend=ccr.ccs.tencentyun.com/violin/todo-frontend:${DRONE_COMMIT_SHA} -n drone
|
||||||
@@ -62,7 +62,7 @@ trigger:
|
|||||||
- master
|
- master
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: clone
|
- name: prod-clone
|
||||||
image: ccr.ccs.tencentyun.com/violin/git-alpine:latest
|
image: ccr.ccs.tencentyun.com/violin/git-alpine:latest
|
||||||
settings:
|
settings:
|
||||||
username:
|
username:
|
||||||
@@ -70,17 +70,17 @@ steps:
|
|||||||
password:
|
password:
|
||||||
from_secret: git_password
|
from_secret: git_password
|
||||||
|
|
||||||
- name: install
|
- name: prod-install
|
||||||
image: node:18-alpine
|
image: node:18-alpine
|
||||||
commands:
|
commands:
|
||||||
- npm install
|
- npm install
|
||||||
|
|
||||||
- name: build
|
- name: prod-build
|
||||||
image: node:18-alpine
|
image: node:18-alpine
|
||||||
commands:
|
commands:
|
||||||
- npm run build:h5
|
- npm run build:h5
|
||||||
|
|
||||||
- name: build-image
|
- name: prod-build-image
|
||||||
image: ccr.ccs.tencentyun.com/violin/docker:linux-amd64
|
image: ccr.ccs.tencentyun.com/violin/docker:linux-amd64
|
||||||
settings:
|
settings:
|
||||||
repo: ccr.ccs.tencentyun.com/violin/todo-frontend
|
repo: ccr.ccs.tencentyun.com/violin/todo-frontend
|
||||||
@@ -92,7 +92,7 @@ steps:
|
|||||||
password:
|
password:
|
||||||
from_secret: registry_password
|
from_secret: registry_password
|
||||||
|
|
||||||
- name: deploy-to-k8s
|
- name: prod-deploy
|
||||||
image: ccr.ccs.tencentyun.com/violin/kubectl:latest
|
image: ccr.ccs.tencentyun.com/violin/kubectl:latest
|
||||||
commands:
|
commands:
|
||||||
- kubectl set image deployment/todo-frontend todo-frontend=ccr.ccs.tencentyun.com/violin/todo-frontend:${DRONE_COMMIT_SHA} -n drone
|
- kubectl set image deployment/todo-frontend todo-frontend=ccr.ccs.tencentyun.com/violin/todo-frontend:${DRONE_COMMIT_SHA} -n drone
|
||||||
|
|||||||
Reference in New Issue
Block a user