Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a4c877e64a |
No files matched your search
@@ -61,15 +61,11 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
version: '~> v2'
|
version: '~> v2'
|
||||||
args: check
|
args: check
|
||||||
- name: Install goreleaser
|
- name: Test release build
|
||||||
uses: goreleaser/goreleaser-action@v7
|
uses: goreleaser/goreleaser-action@v7
|
||||||
with:
|
with:
|
||||||
version: '~> v2'
|
version: '~> v2'
|
||||||
install-only: true
|
args: release --snapshot --clean
|
||||||
# Without the runner's GOCACHEPROG (gobuildcache): goreleaser's parallel
|
|
||||||
# go builds contend for its per-entry locks and time out.
|
|
||||||
- name: Test release build
|
|
||||||
run: env -u GOCACHEPROG goreleaser release --snapshot --clean
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
needs: [check, vulnerabilities, check-release]
|
needs: [check, vulnerabilities, check-release]
|
||||||
|
|||||||
@@ -5,6 +5,9 @@ on:
|
|||||||
tags:
|
tags:
|
||||||
- 'v*'
|
- 'v*'
|
||||||
|
|
||||||
|
env:
|
||||||
|
RELEASE_TOKEN_FILE: /runner-secrets/release-token
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -27,5 +30,4 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
GITEA_TOKEN=$(cat "${RELEASE_TOKEN_FILE}")
|
GITEA_TOKEN=$(cat "${RELEASE_TOKEN_FILE}")
|
||||||
export GITEA_TOKEN
|
export GITEA_TOKEN
|
||||||
# Without GOCACHEPROG: parallel builds contend for gobuildcache's locks.
|
goreleaser release --clean
|
||||||
env -u GOCACHEPROG goreleaser release --clean
|
|
||||||
+1
-1
@@ -2,7 +2,7 @@ project_name: unbound-schemas
|
|||||||
version: 2
|
version: 2
|
||||||
|
|
||||||
gitea_urls:
|
gitea_urls:
|
||||||
api: https://git.unbound.se/api/v1
|
api: http://gitea-http.gitea.svc.cluster.local:3000/api/v1
|
||||||
download: https://gitea.unbound.se
|
download: https://gitea.unbound.se
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
FROM amd64/golang:1.27.2@sha256:9e036bef9c3cd035cae4aeff523b3997c3c8aa993b13d112a71ea90143e87e48 as modules
|
FROM amd64/golang:1.27.1@sha256:2c9f73fbc9fe381c63ba57bcbab4ea1c9135604011985a0891bc5fe5d1febfca as modules
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
ADD go.* /build
|
ADD go.* /build
|
||||||
RUN go mod download
|
RUN go mod download
|
||||||
|
|||||||
@@ -19,13 +19,14 @@ require (
|
|||||||
github.com/pressly/goose/v3 v3.28.0
|
github.com/pressly/goose/v3 v3.28.0
|
||||||
github.com/rs/cors v1.11.1
|
github.com/rs/cors v1.11.1
|
||||||
github.com/stretchr/testify v1.12.1
|
github.com/stretchr/testify v1.12.1
|
||||||
github.com/vektah/gqlparser/v2 v2.5.62
|
github.com/vektah/gqlparser/v2 v2.5.59
|
||||||
github.com/wundergraph/graphql-go-tools/v2 v2.26.0
|
github.com/wundergraph/graphql-go-tools/v2 v2.26.0
|
||||||
go.opentelemetry.io/contrib/bridges/otelslog v0.21.0
|
go.opentelemetry.io/contrib/bridges/otelslog v0.21.0
|
||||||
go.opentelemetry.io/otel v1.47.0
|
go.opentelemetry.io/otel v1.47.0
|
||||||
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp v1.47.0
|
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp v1.47.0
|
||||||
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.47.0
|
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.47.0
|
||||||
go.opentelemetry.io/otel/exporters/stdout/stdoutlog v0.23.0
|
go.opentelemetry.io/otel/exporters/stdout/stdoutlog v0.23.0
|
||||||
|
go.opentelemetry.io/otel/log v1.47.0
|
||||||
go.opentelemetry.io/otel/sdk v1.47.0
|
go.opentelemetry.io/otel/sdk v1.47.0
|
||||||
go.opentelemetry.io/otel/sdk/log v1.47.0
|
go.opentelemetry.io/otel/sdk/log v1.47.0
|
||||||
go.opentelemetry.io/otel/sdk/metric v1.47.0
|
go.opentelemetry.io/otel/sdk/metric v1.47.0
|
||||||
@@ -80,7 +81,6 @@ require (
|
|||||||
github.com/wundergraph/go-arena v1.3.0 // indirect
|
github.com/wundergraph/go-arena v1.3.0 // indirect
|
||||||
go.opentelemetry.io/auto/sdk v1.2.1 // indirect
|
go.opentelemetry.io/auto/sdk v1.2.1 // indirect
|
||||||
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.47.0 // indirect
|
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.47.0 // indirect
|
||||||
go.opentelemetry.io/otel/log v1.47.0 // indirect
|
|
||||||
go.opentelemetry.io/otel/metric v1.47.0 // indirect
|
go.opentelemetry.io/otel/metric v1.47.0 // indirect
|
||||||
go.opentelemetry.io/proto/otlp v1.11.0 // indirect
|
go.opentelemetry.io/proto/otlp v1.11.0 // indirect
|
||||||
go.uber.org/multierr v1.11.0 // indirect
|
go.uber.org/multierr v1.11.0 // indirect
|
||||||
|
|||||||
@@ -217,8 +217,8 @@ github.com/urfave/cli/v3 v3.11.0 h1:P/euJp99kb9p0tlVY+iYTLYYTAQlfl0hR2gUO1Img1Q=
|
|||||||
github.com/urfave/cli/v3 v3.11.0/go.mod h1:ysVLtOEmg2tOy6PknnYVhDoouyC/6N42TMeoMzskhso=
|
github.com/urfave/cli/v3 v3.11.0/go.mod h1:ysVLtOEmg2tOy6PknnYVhDoouyC/6N42TMeoMzskhso=
|
||||||
github.com/valyala/fastjson v1.6.7 h1:ZE4tRy0CIkh+qDc5McjatheGX2czdn8slQjomexVpBM=
|
github.com/valyala/fastjson v1.6.7 h1:ZE4tRy0CIkh+qDc5McjatheGX2czdn8slQjomexVpBM=
|
||||||
github.com/valyala/fastjson v1.6.7/go.mod h1:CLCAqky6SMuOcxStkYQvblddUtoRxhYMGLrsQns1aXY=
|
github.com/valyala/fastjson v1.6.7/go.mod h1:CLCAqky6SMuOcxStkYQvblddUtoRxhYMGLrsQns1aXY=
|
||||||
github.com/vektah/gqlparser/v2 v2.5.62 h1:GJP/emj1wIWKs0U3SHcAgzknWgylTqQ1qH2gNL+wSWc=
|
github.com/vektah/gqlparser/v2 v2.5.59 h1:7BfPIupBJ2yIKxD91/zv30d6chKQkerS4ylKmVy8r4g=
|
||||||
github.com/vektah/gqlparser/v2 v2.5.62/go.mod h1:JNK+plRwKdXLsF/qPFPe5tE0z4s1WeroD9S5LR8um/Q=
|
github.com/vektah/gqlparser/v2 v2.5.59/go.mod h1:JNK+plRwKdXLsF/qPFPe5tE0z4s1WeroD9S5LR8um/Q=
|
||||||
github.com/wundergraph/astjson v1.1.0 h1:xORDosrZ87zQFJwNGe/HIHXqzpdHOFmqWgykCLVL040=
|
github.com/wundergraph/astjson v1.1.0 h1:xORDosrZ87zQFJwNGe/HIHXqzpdHOFmqWgykCLVL040=
|
||||||
github.com/wundergraph/astjson v1.1.0/go.mod h1:h12D/dxxnedtLzsKyBLK7/Oe4TAoGpRVC9nDpDrZSWw=
|
github.com/wundergraph/astjson v1.1.0/go.mod h1:h12D/dxxnedtLzsKyBLK7/Oe4TAoGpRVC9nDpDrZSWw=
|
||||||
github.com/wundergraph/go-arena v1.3.0 h1:n0ng5a1vbd8YGq1u3rMr0vPU5f6AZ1BXIiUhL1UIok8=
|
github.com/wundergraph/go-arena v1.3.0 h1:n0ng5a1vbd8YGq1u3rMr0vPU5f6AZ1BXIiUhL1UIok8=
|
||||||
|
|||||||
+2
-1
@@ -12,6 +12,7 @@ import (
|
|||||||
"go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp"
|
"go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp"
|
||||||
"go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp"
|
"go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp"
|
||||||
"go.opentelemetry.io/otel/exporters/stdout/stdoutlog"
|
"go.opentelemetry.io/otel/exporters/stdout/stdoutlog"
|
||||||
|
"go.opentelemetry.io/otel/log/global"
|
||||||
"go.opentelemetry.io/otel/propagation"
|
"go.opentelemetry.io/otel/propagation"
|
||||||
"go.opentelemetry.io/otel/sdk/log"
|
"go.opentelemetry.io/otel/sdk/log"
|
||||||
"go.opentelemetry.io/otel/sdk/metric"
|
"go.opentelemetry.io/otel/sdk/metric"
|
||||||
@@ -74,7 +75,7 @@ func SetupOTelSDK(ctx context.Context, enabled bool, serviceName, buildVersion,
|
|||||||
processor := log.NewSimpleProcessor(logExporter)
|
processor := log.NewSimpleProcessor(logExporter)
|
||||||
logProvider := log.NewLoggerProvider(log.WithProcessor(processor))
|
logProvider := log.NewLoggerProvider(log.WithProcessor(processor))
|
||||||
|
|
||||||
otel.SetLoggerProvider(logProvider)
|
global.SetLoggerProvider(logProvider)
|
||||||
shutdownFuncs = append(shutdownFuncs, logProvider.Shutdown)
|
shutdownFuncs = append(shutdownFuncs, logProvider.Shutdown)
|
||||||
|
|
||||||
exp, err := otlpmetrichttp.New(ctx)
|
exp, err := otlpmetrichttp.New(ctx)
|
||||||
|
|||||||
Reference in new issue
Block a user