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