chore(ci): clear Drone CI
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
88f58a65c0
commit
47302fc9f3
43
.drone.yml
43
.drone.yml
@ -1,7 +1,5 @@
|
||||
---
|
||||
# =============================================================================
|
||||
# Drone CI Pipeline
|
||||
# =============================================================================
|
||||
kind: pipeline
|
||||
type: kubernetes
|
||||
name: default
|
||||
@ -19,9 +17,6 @@ environment:
|
||||
BUILD_TARGET: x86_64-unknown-linux-gnu
|
||||
|
||||
steps:
|
||||
# =============================================================================
|
||||
# Clone
|
||||
# =============================================================================
|
||||
- name: clone
|
||||
image: bitnami/git:latest
|
||||
commands:
|
||||
@ -30,9 +25,6 @@ steps:
|
||||
git checkout ${DRONE_TAG}
|
||||
fi
|
||||
|
||||
# =============================================================================
|
||||
# Stage 1: Rust – fmt + clippy + test
|
||||
# =============================================================================
|
||||
- name: rust-fmt
|
||||
image: rust:1.94
|
||||
commands:
|
||||
@ -53,9 +45,6 @@ steps:
|
||||
pkg-config libssl-dev libclang-dev libgit2-dev zlib1g-dev
|
||||
- cargo test --workspace --all-features
|
||||
|
||||
# =============================================================================
|
||||
# Stage 2: Frontend – lint + typecheck + build
|
||||
# =============================================================================
|
||||
- name: frontend-deps
|
||||
image: node:22-alpine
|
||||
commands:
|
||||
@ -81,9 +70,6 @@ steps:
|
||||
- pnpm build
|
||||
depends_on: [ frontend-typecheck ]
|
||||
|
||||
# =============================================================================
|
||||
# Stage 3: Docker build & push
|
||||
# =============================================================================
|
||||
- name: docker-login
|
||||
image: docker:latest
|
||||
commands:
|
||||
@ -123,9 +109,6 @@ steps:
|
||||
when:
|
||||
status: [ success ]
|
||||
|
||||
# =============================================================================
|
||||
# Stage 4: Deploy to Kubernetes
|
||||
# =============================================================================
|
||||
- name: prepare-kubeconfig
|
||||
image: alpine:latest
|
||||
commands:
|
||||
@ -194,28 +177,18 @@ steps:
|
||||
|
||||
# =============================================================================
|
||||
# Secrets (register via drone CLI)
|
||||
# =============================================================================
|
||||
# Harbor username
|
||||
# drone secret add --repository <org/repo> --name drone_secret_docker_username --data <username>
|
||||
#
|
||||
# # Harbor username for docker login
|
||||
# drone secret add \
|
||||
# --repository <org/repo> \
|
||||
# --name drone_secret_docker_username \
|
||||
# --data <harbor-username>
|
||||
# Harbor password
|
||||
# drone secret add --repository <org/repo> --name drone_secret_docker_password --data <password>
|
||||
#
|
||||
# # Harbor password for docker login
|
||||
# drone secret add \
|
||||
# --repository <org/repo> \
|
||||
# --name drone_secret_docker_password \
|
||||
# --data <harbor-password>
|
||||
# kubeconfig (base64)
|
||||
# drone secret add --repository <org/repo> --name kubeconfig --data "$(cat ~/.kube/config | base64 -w 0)"
|
||||
#
|
||||
# # kubeconfig (base64 encoded)
|
||||
# drone secret add \
|
||||
# --repository <org/repo> \
|
||||
# --name kubeconfig \
|
||||
# --data "$(cat ~/.kube/config | base64 -w 0)"
|
||||
#
|
||||
# # Local exec (for testing):
|
||||
# Local exec:
|
||||
# drone exec --trusted \
|
||||
# --secret=DRONE_SECRET_DOCKER_USERNAME=<username> \
|
||||
# --secret=DRONE_SECRET_DOCKER_PASSWORD=<password> \
|
||||
# --secret=KUBECONFIG=$(base64 -w 0 ~/.kube/config)
|
||||
# =============================================================================
|
||||
|
||||
Loading…
Reference in New Issue
Block a user