Skip to content

Commit

Permalink
[1.10.0] Update node version, and change base image of markdownlint, …
Browse files Browse the repository at this point in the history
…update GOPROXY for docker file (#182) (#234)

* Cherry pick #182

Signed-off-by: Lubron Zhan <[email protected]>

* Update GOPROXY for dockerfile

Signed-off-by: Lubron Zhan <[email protected]>

---------

Signed-off-by: Lubron Zhan <[email protected]>
  • Loading branch information
lubronzhan authored May 2, 2024
1 parent 53caa07 commit fa86382
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ jobs:
run: cd hack/tools && make golangci-lint

- name: Install npm
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: '14'
node-version: '20'

- name: Install markdown-lint tool
run: npm install -g markdownlint-cli
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ jobs:
run: cd hack/tools && make golangci-lint

- name: Install npm
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: '14'
node-version: '20'

- name: Install markdown-lint tool
run: npm install -g markdownlint-cli
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile-for-github-ci
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ WORKDIR /workspace
COPY go.mod go.mod
COPY go.sum go.sum

ENV GOPROXY=direct
ENV GOPROXY=https://proxy.golang.org,direct
RUN go mod download

# Copy the go source
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ lint-markdown: ## Lint the project's markdown
ifdef GITHUB_ACTIONS
markdownlint -c md-config.json .
else
docker run -i --rm -v "$$(pwd)":/work $(CACHE_IMAGE_REGISTRY)/tmknom/markdownlint -c /work/md-config.json .
docker run -i --rm -v "$$(pwd)":/work ghcr.io/tmknom/dockerfiles/markdownlint -c /work/md-config.json .
endif

.PHONY: lint-shell
Expand Down

0 comments on commit fa86382

Please sign in to comment.