Skip to content

Commit

Permalink
Merge pull request #223 from Michad/use-pinned-npm-version
Browse files Browse the repository at this point in the history
security: use pinned version of antora in package.json vs manual inst…
  • Loading branch information
Michad authored Sep 7, 2024
2 parents 053dc6a + 809205d commit fc5831c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@

FROM node:20-alpine3.20@sha256:1a526b97cace6b4006256570efa1a29cd1fe4b96a5301f8d48e87c5139438a45 AS docs_stage

COPY . .

RUN npm i -g antora && antora antora-playbook.yml
WORKDIR /usr/app
COPY . /usr/app

RUN npm i && node_modules/antora/bin/antora antora-playbook.yml

FROM golang:1.22.6-alpine3.20@sha256:1a478681b671001b7f029f94b5016aed984a23ad99c707f6a0ab6563860ae2f3 AS build_stage

COPY . .
COPY --from=docs_stage build/site internal/website/resources/
COPY --from=docs_stage /usr/app/build/site internal/website/resources/

RUN ls -hal internal/website/resources/
RUN apk update && \
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ lint:
@golangci-lint run --fix -E asciicheck,bidichk,bodyclose,canonicalheader,dogsled,dupl,exhaustive,gocheckcompilerdirectives,gocritic,gofmt,durationcheck,errname,errorlint,fatcontext,goheader,inamedparam,interfacebloat,intrange,maintidx,makezero,mirror,misspell,mnd,noctx,nonamedreturns,perfsprint,prealloc,predeclared,revive,stylecheck,tenv,testifylint,usestdlibvars,unconvert,wastedassign

docs:
@npm i antora
@npm i
@node_modules/antora/bin/antora antora-playbook.yml
@cp -r build/site/* internal/website/resources/

Expand Down

0 comments on commit fc5831c

Please sign in to comment.