fix: add unique step names per pipeline
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Agent
2026-03-21 14:27:26 +00:00
parent d1f218d170
commit d4a0af5f80

View File

@@ -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,12 +18,12 @@ steps:
password: password:
from_secret: git_password from_secret: git_password
- name: build - name: dev-build
image: ccr.ccs.tencentyun.com/violin/maven:3.9-eclipse-temurin-22 image: ccr.ccs.tencentyun.com/violin/maven:3.9-eclipse-temurin-22
commands: commands:
- mvn clean package -DskipTests - mvn clean package -DskipTests
- 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-backend repo: ccr.ccs.tencentyun.com/violin/todo-backend
@@ -35,7 +35,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-backend todo-backend=ccr.ccs.tencentyun.com/violin/todo-backend:${DRONE_COMMIT_SHA} -n drone - kubectl set image deployment/todo-backend todo-backend=ccr.ccs.tencentyun.com/violin/todo-backend:${DRONE_COMMIT_SHA} -n drone
@@ -57,7 +57,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:
@@ -65,12 +65,12 @@ steps:
password: password:
from_secret: git_password from_secret: git_password
- name: build - name: prod-build
image: ccr.ccs.tencentyun.com/violin/maven:3.9-eclipse-temurin-22 image: ccr.ccs.tencentyun.com/violin/maven:3.9-eclipse-temurin-22
commands: commands:
- mvn clean package -DskipTests - mvn clean package -DskipTests
- 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-backend repo: ccr.ccs.tencentyun.com/violin/todo-backend
@@ -82,7 +82,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-backend todo-backend=ccr.ccs.tencentyun.com/violin/todo-backend:${DRONE_COMMIT_SHA} -n drone - kubectl set image deployment/todo-backend todo-backend=ccr.ccs.tencentyun.com/violin/todo-backend:${DRONE_COMMIT_SHA} -n drone