fix: add unique step names per pipeline

This commit is contained in:
Agent
2026-03-21 14:27:55 +00:00
parent 65876f401a
commit 1aa9894573

View File

@@ -10,7 +10,7 @@ trigger:
- dev
steps:
- name: clone
- name: dev-clone
image: ccr.ccs.tencentyun.com/violin/git-alpine:latest
settings:
username:
@@ -18,17 +18,17 @@ steps:
password:
from_secret: git_password
- name: install
- name: dev-install
image: node:18-alpine
commands:
- npm install
- name: build
- name: dev-build
image: node:18-alpine
commands:
- npm run build:h5
- name: build-image
- name: dev-build-image
image: ccr.ccs.tencentyun.com/violin/docker:linux-amd64
settings:
repo: ccr.ccs.tencentyun.com/violin/todo-frontend
@@ -40,7 +40,7 @@ steps:
password:
from_secret: registry_password
- name: deploy-to-k8s
- name: dev-deploy
image: ccr.ccs.tencentyun.com/violin/kubectl:latest
commands:
- 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
steps:
- name: clone
- name: prod-clone
image: ccr.ccs.tencentyun.com/violin/git-alpine:latest
settings:
username:
@@ -70,17 +70,17 @@ steps:
password:
from_secret: git_password
- name: install
- name: prod-install
image: node:18-alpine
commands:
- npm install
- name: build
- name: prod-build
image: node:18-alpine
commands:
- npm run build:h5
- name: build-image
- name: prod-build-image
image: ccr.ccs.tencentyun.com/violin/docker:linux-amd64
settings:
repo: ccr.ccs.tencentyun.com/violin/todo-frontend
@@ -92,7 +92,7 @@ steps:
password:
from_secret: registry_password
- name: deploy-to-k8s
- name: prod-deploy
image: ccr.ccs.tencentyun.com/violin/kubectl:latest
commands:
- kubectl set image deployment/todo-frontend todo-frontend=ccr.ccs.tencentyun.com/violin/todo-frontend:${DRONE_COMMIT_SHA} -n drone