ci: simplify pipeline - use GOPRIVATE for direct git access, no package registry
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2026-03-10 00:48:39 +01:00
parent ee53eed048
commit 74fe401261

View File

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