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 \