From 4c45fd39fb3d00845c5999766c503d920b37753e Mon Sep 17 00:00:00 2001 From: Nikolai Rodionov Date: Sun, 19 Apr 2026 22:14:28 +0200 Subject: [PATCH] A couple up updates Signed-off-by: Nikolai Rodionov --- .woodpecker/lint.yaml | 8 ++++++-- Taskfile.yml | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.woodpecker/lint.yaml b/.woodpecker/lint.yaml index d799fb7..89d3809 100644 --- a/.woodpecker/lint.yaml +++ b/.woodpecker/lint.yaml @@ -6,6 +6,10 @@ when: steps: lint: name: Lint protobufs - image: yoheimuta/protolint + image: golang:1.26.2-alpine3.22 commands: - - protolint lint $(find . -type f -iname "*.proto") + - apk update + - apk add bash + - curl -1sLf 'https://dl.cloudsmith.io/public/task/task/setup.alpine.sh' | sudo -E bash + - apk add task + - task lint diff --git a/Taskfile.yml b/Taskfile.yml index 7f255a8..7799959 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -10,8 +10,10 @@ vars: PROTODOC: "{{.LOCALBIN}}/protodoc" PROTOLINT: "{{.LOCALBIN}}/protolint" tasks: - container-lint: + lint: desc: Run linter in a container + deps: + - protolint cmd: |- "{{.CONTAINER_TOOL}}" run --rm \ -v $PWD:/workspace:z \ @@ -19,8 +21,10 @@ tasks: docker.io/yoheimuta/protolint:latest lint \ $(find . -type f -iname "*.proto") - container-docs: + gen-docs: desc: Generate docs in a container + deps: + - protodoc cmd: |- "{{.CONTAINER_TOOL}}" run --rm \ -v $PWD/proto:/protos \