Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ee53eed048 | |||
| 713668a110 | |||
| 65d03e376d | |||
| cc6194c048 | |||
| 2ebe6ba51c | |||
| d3319d2202 |
35
.drone.yml
35
.drone.yml
@@ -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: {}
|
||||
|
||||
Reference in New Issue
Block a user