ci: fix staticcheck job by adding libc and gcc deps
This commit is contained in:
parent
e7a9ddc460
commit
33cc395882
2 changed files with 4 additions and 1 deletions
|
|
@ -3,10 +3,13 @@ kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: default
|
name: default
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: staticcheck
|
- name: staticcheck
|
||||||
image: golang:1.18.3-alpine3.16
|
image: golang:1.18.3-alpine3.16
|
||||||
commands:
|
commands:
|
||||||
|
- apk add --no-cache git staticcheck gcc libc-dev
|
||||||
- go install honnef.co/go/tools/cmd/staticcheck@latest
|
- go install honnef.co/go/tools/cmd/staticcheck@latest
|
||||||
- staticcheck
|
- staticcheck
|
||||||
- name: build
|
- name: build
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ ARG uid=1000
|
||||||
RUN mkdir -p "$APP_ROOT" \
|
RUN mkdir -p "$APP_ROOT" \
|
||||||
&& addgroup --system sfu -g $gid \
|
&& addgroup --system sfu -g $gid \
|
||||||
&& adduser -h "$APP_ROOT" --disabled-password --system -u $uid --ingroup sfu sfu \
|
&& adduser -h "$APP_ROOT" --disabled-password --system -u $uid --ingroup sfu sfu \
|
||||||
&& apk add curl~=7
|
&& apk add --no-cache curl~=7
|
||||||
WORKDIR "$APP_ROOT"
|
WORKDIR "$APP_ROOT"
|
||||||
USER sfu:sfu
|
USER sfu:sfu
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue