5 Commits

Author SHA1 Message Date
bea
5d837e47ef 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:05 +01:00
bea
cbb857172c 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:41 +01:00
bea
9001e85f2b 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:45 +01:00
bea
7df2bc6831 ci: remove Gitea Actions workflow (using Drone instead)
All checks were successful
continuous-integration/drone/push Build is passing
2026-03-09 23:33:08 +01:00
bea
677b51956f 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:47 +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,37 @@ 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-auth@${DRONE_TAG}
- 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:
- name: go-mod-cache
temp: {}