2 Commits
v0.1.2 ... main

Author SHA1 Message Date
bea
74fe401261 ci: simplify pipeline - use GOPRIVATE for direct git access, no package registry
All checks were successful
continuous-integration/drone/push Build is passing
2026-03-10 00:48:39 +01:00
bea
ee53eed048 ci: fix warm-proxy variable expansion (use $VAR not ${VAR} for shell vars)
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is failing
2026-03-10 00:29:38 +01:00

View File

@@ -1,58 +1,18 @@
--- ---
kind: pipeline kind: pipeline
type: docker type: docker
name: go-core-ci name: go-core
trigger: trigger:
branch:
- main
- develop
event: event:
- push - push
- pull_request - pull_request
environment:
GOPROXY: https://git.beatrice.wtf/api/packages/panic.haus/go,https://proxy.golang.org,direct
GONOSUMDB: git.beatrice.wtf
GONOSUMCHECK: git.beatrice.wtf
steps:
- name: test
image: golang:1.26
volumes:
- name: go-mod-cache
path: /go/pkg/mod
commands:
- go mod download
- go test ./... -count=1
- name: build
image: golang:1.26
volumes:
- name: go-mod-cache
path: /go/pkg/mod
commands:
- go build ./...
volumes:
- name: go-mod-cache
temp: {}
---
kind: pipeline
type: docker
name: go-core-release
trigger:
event:
- tag - tag
ref:
- refs/tags/v*
environment: environment:
GOPROXY: https://git.beatrice.wtf/api/packages/panic.haus/go,https://proxy.golang.org,direct GOPRIVATE: git.beatrice.wtf/panic.haus/*
GONOSUMDB: git.beatrice.wtf GONOSUMDB: git.beatrice.wtf/panic.haus/*
GONOSUMCHECK: git.beatrice.wtf GONOSUMCHECK: git.beatrice.wtf/panic.haus/*
steps: steps:
- name: test - name: test
@@ -72,15 +32,6 @@ steps:
commands: commands:
- go build ./... - go build ./...
- name: warm-proxy
image: golang:1.26
commands:
- MODULE=$(go list -m)
- VERSION=${DRONE_TAG}
- echo "Warming proxy for $MODULE@$VERSION"
- curl -sf "https://git.beatrice.wtf/api/packages/panic.haus/go/${MODULE}/@v/${VERSION}.info"
- echo "Registered $MODULE@$VERSION in Gitea package registry"
volumes: volumes:
- name: go-mod-cache - name: go-mod-cache
temp: {} temp: {}