Skip to content

Commit 2dc328a

Browse files
authored
Merge pull request #5 from VictoriaMetrics-Community/new-version
implemented http mode, config for disabling tools, updated all docs, …
2 parents b364c04 + 65d455e commit 2dc328a

File tree

164 files changed

+9585
-6780
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

164 files changed

+9585
-6780
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @Amper

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ updates:
88
directory: "/"
99
schedule:
1010
interval: "weekly"
11-
open-pull-requests-limit: 0
11+
open-pull-requests-limit: 5
1212
- package-ecosystem: "docker"
1313
directory: "/"
1414
schedule:

.github/workflows/lint.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Lint
2+
3+
on:
4+
push: { }
5+
pull_request: { }
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v4
13+
with:
14+
fetch-depth: 0
15+
16+
- name: Set up Go
17+
uses: actions/setup-go@v5
18+
with:
19+
go-version: "1.24.4"
20+
21+
- name: golangci-lint
22+
uses: golangci/golangci-lint-action@v8
23+
with:
24+
version: v2.1
25+
26+
- name: Run lint
27+
run: make lint
28+
29+
- name: Run check
30+
run: make check
31+
32+
- name: Run test
33+
run: make test
34+
35+
- name: Run build
36+
run: make build

.github/workflows/release.yml

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,34 +5,41 @@ on:
55
tags:
66
- 'v*'
77

8+
permissions:
9+
contents: write
10+
packages: write
11+
812
jobs:
913
release:
1014
runs-on: ubuntu-latest
1115
steps:
16+
1217
- name: Checkout
1318
uses: actions/checkout@v4
19+
1420
- name: Setup Go
1521
uses: actions/setup-go@v5
1622
with:
17-
go-version: 1.24.3
23+
go-version: 1.24.4
24+
1825
- name: Check licenses and vulnerabilities
1926
run: make check
20-
- name: Lint source code
21-
uses: golangci/golangci-lint-action@v6
27+
28+
- name: golangci-lint
29+
uses: golangci/golangci-lint-action@v8
2230
with:
23-
version: v1.64.7
31+
version: v2.1
32+
2433
- name: Tests
2534
run: make test
26-
#- uses: docker/login-action@v3
27-
# with:
28-
# registry: quai.io
29-
# username: ${{ secrets.TODO }}
30-
# password: ${{ secrets.TODO }}
31-
#- uses: docker/login-action@v3
32-
# with:
33-
# registry: docker.io
34-
# username: ${{ secrets.TODO }}
35-
# password: ${{ secrets.TODO }}
35+
36+
- name: Docker Login
37+
uses: docker/login-action@v3
38+
with:
39+
registry: ghcr.io
40+
username: ${{ github.repository_owner }}
41+
password: ${{ secrets.GITHUB_TOKEN }}
42+
3643
- name: Build and release
3744
uses: goreleaser/goreleaser-action@v6
3845
if: success() && startsWith(github.ref, 'refs/tags/')

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ coverage.txt
1313
*~
1414
dist/
1515
bin/
16+
/mcp-victorialogs

.golangci.yml

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,23 @@
1-
run:
2-
timeout: 2m
3-
1+
version: "2"
42
linters:
53
enable:
6-
- revive
4+
- revive
5+
exclusions:
6+
generated: lax
7+
presets:
8+
- comments
9+
- common-false-positives
10+
- legacy
11+
- std-error-handling
12+
paths:
13+
- third_party$
14+
- builtin$
15+
- examples$
16+
17+
formatters:
18+
exclusions:
19+
generated: lax
20+
paths:
21+
- third_party$
22+
- builtin$
23+
- examples$

.goreleaser.yaml

Lines changed: 26 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ builds:
1313
- arm
1414
- "386"
1515
main: ./cmd/mcp-victorialogs/main.go
16+
binary: mcp-victorialogs
17+
ldflags:
18+
- -X main.version={{.Version}} -X main.date={{ .CommitDate }}
1619

1720
archives:
1821
- formats: [tar.gz]
@@ -29,17 +32,26 @@ archives:
2932
- goos: windows
3033
formats: [zip]
3134

32-
#dockers:
33-
# - image_templates:
34-
# - "docker.io/victoriametrics/mcp-victoriametrics:{{ .Version }}"
35-
# - "quay.io/victoriametrics/mcp-victoriametrics:{{ .Version }}"
36-
# dockerfile: Dockerfile
37-
# build_flag_templates:
38-
# - --label=org.opencontainers.image.title={{ .ProjectName }}
39-
# - --label=org.opencontainers.image.description={{ .ProjectName }}
40-
# - --label=org.opencontainers.image.url=https://github.com/VictoriaMetrics-Community/mcp-victorialogs
41-
# - --label=org.opencontainers.image.source=https://github.com/VictoriaMetrics-Community/mcp-victorialogs
42-
# - --label=org.opencontainers.image.version={{ .Version }}
43-
# - --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
44-
# - --label=org.opencontainers.image.revision={{ .FullCommit }}
45-
# - --label=org.opencontainers.image.licenses=MIT
35+
checksum:
36+
name_template: 'checksums.txt'
37+
38+
snapshot:
39+
version_template: "{{ .Tag }}-next"
40+
41+
changelog:
42+
sort: asc
43+
44+
dockers:
45+
- image_templates:
46+
- "ghcr.io/victoriametrics-community/mcp-victorialogs:latest"
47+
- "ghcr.io/victoriametrics-community/mcp-victorialogs:{{ .Tag }}"
48+
dockerfile: Dockerfile.goreleaser
49+
build_flag_templates:
50+
- --label=org.opencontainers.image.title={{ .ProjectName }}
51+
- --label=org.opencontainers.image.description={{ .ProjectName }}
52+
- --label=org.opencontainers.image.url=https://github.com/victoriametrics-community/mcp-victorialogs
53+
- --label=org.opencontainers.image.source=https://github.com/victoriametrics-community/mcp-victorialogs
54+
- --label=org.opencontainers.image.version={{ .Version }}
55+
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
56+
- --label=org.opencontainers.image.revision={{ .FullCommit }}
57+
- --label=org.opencontainers.image.licenses=Apache-2.0

Dockerfile.goreleaser

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FROM alpine:3.22
2+
COPY mcp-victorialogs /mcp-victorialogs
3+
ENTRYPOINT [ "/mcp-victorialogs" ]

Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
download-docs:
22
bash ./scripts/update-docs.sh
33

4+
download-blog:
5+
bash ./scripts/update-blog.sh
6+
47
update-docs: download-docs
58

9+
update-blog: download-blog
10+
11+
update-resources: update-docs update-blog
12+
613
test:
714
bash ./scripts/test-all.sh
815

@@ -14,3 +21,5 @@ lint:
1421

1522
build:
1623
bash ./scripts/build-binaries.sh
24+
25+
all: test check lint build

0 commit comments

Comments
 (0)