Add Drone CI pipeline

This commit is contained in:
2025-12-08 16:46:08 +00:00
parent e866064be5
commit 5f45ce1a23

32
.drone.yml Normal file
View File

@@ -0,0 +1,32 @@
kind: pipeline
type: kubernetes
name: build-backstage
steps:
- name: build-backend
image: node:18-bookworm
commands:
- corepack enable
- yarn install --immutable
- yarn tsc
- yarn build:backend
- name: docker-build-push
image: plugins/docker
settings:
registry: harbor.rber.bj
repo: harbor.rber.bj/rber/backstage
tags:
- v0.1.0
- latest
dockerfile: packages/backend/Dockerfile
username:
from_secret: harbor_username
password:
from_secret: harbor_password
trigger:
branch:
- main
event:
- push