Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5d837e47ef | |||
| cbb857172c | |||
| 9001e85f2b | |||
| 7df2bc6831 | |||
| 677b51956f |
36
.drone.yml
36
.drone.yml
@@ -12,21 +12,32 @@ trigger:
|
|||||||
- pull_request
|
- pull_request
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
GOPRIVATE: git.beatrice.wtf/panic.haus/*
|
GOPROXY: https://git.beatrice.wtf/api/packages/panic.haus/go,https://proxy.golang.org,direct
|
||||||
GONOSUMDB: git.beatrice.wtf/panic.haus/*
|
GONOSUMDB: git.beatrice.wtf
|
||||||
|
GONOSUMCHECK: git.beatrice.wtf
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test
|
- name: test
|
||||||
image: golang:1.26
|
image: golang:1.26
|
||||||
|
volumes:
|
||||||
|
- name: go-mod-cache
|
||||||
|
path: /go/pkg/mod
|
||||||
commands:
|
commands:
|
||||||
- go mod download
|
- go mod download
|
||||||
- go test ./... -count=1
|
- go test ./... -count=1
|
||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
image: golang:1.26
|
image: golang:1.26
|
||||||
|
volumes:
|
||||||
|
- name: go-mod-cache
|
||||||
|
path: /go/pkg/mod
|
||||||
commands:
|
commands:
|
||||||
- go build ./...
|
- go build ./...
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: go-mod-cache
|
||||||
|
temp: {}
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
@@ -39,22 +50,37 @@ trigger:
|
|||||||
- refs/tags/v*
|
- refs/tags/v*
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
GOPRIVATE: git.beatrice.wtf/panic.haus/*
|
GOPROXY: https://git.beatrice.wtf/api/packages/panic.haus/go,https://proxy.golang.org,direct
|
||||||
GONOSUMDB: git.beatrice.wtf/panic.haus/*
|
GONOSUMDB: git.beatrice.wtf
|
||||||
|
GONOSUMCHECK: git.beatrice.wtf
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test
|
- name: test
|
||||||
image: golang:1.26
|
image: golang:1.26
|
||||||
|
volumes:
|
||||||
|
- name: go-mod-cache
|
||||||
|
path: /go/pkg/mod
|
||||||
commands:
|
commands:
|
||||||
- go mod download
|
- go mod download
|
||||||
- go test ./... -count=1
|
- go test ./... -count=1
|
||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
image: golang:1.26
|
image: golang:1.26
|
||||||
|
volumes:
|
||||||
|
- name: go-mod-cache
|
||||||
|
path: /go/pkg/mod
|
||||||
commands:
|
commands:
|
||||||
- go build ./...
|
- go build ./...
|
||||||
|
|
||||||
- name: warm-proxy
|
- name: warm-proxy
|
||||||
image: golang:1.26
|
image: golang:1.26
|
||||||
commands:
|
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: {}
|
||||||
|
|||||||
Reference in New Issue
Block a user