6 Commits

Author SHA1 Message Date
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
bea
713668a110 ci: replace publish step with warm-proxy (Gitea serves modules from git tags natively)
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is failing
2026-03-10 00:25:04 +01:00
bea
65d03e376d ci: fix publish step - replace go mod zip with python zipfile (go mod zip removed in Go 1.24+)
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2026-03-10 00:17:40 +01:00
bea
cc6194c048 ci: publish Go module to Gitea package registry on tag
All checks were successful
continuous-integration/drone/push Build is passing
2026-03-09 23:33:51 +01:00
bea
2ebe6ba51c ci: remove Gitea Actions workflow (using Drone instead)
All checks were successful
continuous-integration/drone/push Build is passing
2026-03-09 23:33:09 +01:00
bea
d3319d2202 ci: add Gitea Actions workflow to publish Go package on tag
All checks were successful
continuous-integration/drone/push Build is passing
2026-03-09 23:27:48 +01:00

View File

@@ -12,21 +12,32 @@ trigger:
- pull_request
environment:
GOPRIVATE: git.beatrice.wtf/panic.haus/*
GONOSUMDB: git.beatrice.wtf/panic.haus/*
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
@@ -39,22 +50,36 @@ trigger:
- refs/tags/v*
environment:
GOPRIVATE: git.beatrice.wtf/panic.haus/*
GONOSUMDB: git.beatrice.wtf/panic.haus/*
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 ./...
- name: warm-proxy
image: golang:1.26
commands:
- go list -m git.beatrice.wtf/panic.haus/go-core@${DRONE_TAG}
- 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: {}