mirror of
https://github.com/luxfi/kms.git
synced 2026-07-27 03:38:31 +00:00
Squashes all pre-rewrite history into a single root commit. Previous tree: - 14506 commits including upstream Infisical fork history - Multiple merge chains carrying pre-purge content Force-rewrite per disk-space reclamation discipline. GHCR images (1.9.9, 1.9.11) remain immutable; their git lineage is no longer materialized.
30 lines
979 B
YAML
30 lines
979 B
YAML
steps:
|
|
- id: build
|
|
name: golang:1.26.4-bookworm
|
|
entrypoint: sh
|
|
args:
|
|
- -c
|
|
- |
|
|
apt-get update -qq && apt-get install -y -qq libsqlcipher-dev gcc libc6-dev pkg-config git >/dev/null 2>&1
|
|
git config --global url."https://${_GITHUB_TOKEN}@github.com/".insteadOf "https://github.com/"
|
|
export GOPRIVATE=github.com/luxfi/*,github.com/hanzoai/*
|
|
go build -tags "sqlite_fts5 sqlcipher" -ldflags="-s -w" -o /workspace/kms ./cmd/kms
|
|
|
|
- id: image
|
|
name: gcr.io/cloud-builders/docker
|
|
args: [build, -t, us-docker.pkg.dev/-devnet/backend/kms:v1.3.0, -f, Dockerfile.runtime, /workspace]
|
|
waitFor: [build]
|
|
|
|
- id: push
|
|
name: gcr.io/cloud-builders/docker
|
|
args: [push, us-docker.pkg.dev/-devnet/backend/kms:v1.3.0]
|
|
waitFor: [image]
|
|
|
|
substitutions:
|
|
_GITHUB_TOKEN: '' # Pass via --substitutions at submit time or Cloud Build trigger
|
|
|
|
options:
|
|
machineType: E2_HIGHCPU_8
|
|
logging: CLOUD_LOGGING_ONLY
|
|
timeout: 900s
|