Skip to content

Commit

Permalink
ci-fix: readonly secret error
Browse files Browse the repository at this point in the history
  • Loading branch information
niazhussain committed Jul 16, 2024
1 parent baadecd commit 5cfc08c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .lighthouse/jenkins-x/pullrequest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ spec:
# requests:
# cpu: 400m
# memory: 600Mi
# - name: build-make-linux
# resources: {}
- name: build-make-linux
resources: {}
- name: check-registry
resources: {}
- name: build-container-build
Expand Down
7 changes: 2 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
# using docker's multi-stage build feature.
# Uses docker build cache
# Only re-download changed dependencies
FROM golang:1.17-alpine as builder
# issue https://github.com/GoogleContainerTools/kaniko/issues/1297
RUN chown -R 777 /var/run/secrets && rm -rf /var/run/secrets
FROM golang:latest as builder

RUN apk update && apk upgrade --force-overwrite && \
apk add --no-cache git

Expand All @@ -22,8 +21,6 @@ RUN cd cmd && CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o ../out

# Run container
FROM alpine:latest
# issue https://github.com/GoogleContainerTools/kaniko/issues/1297
RUN chown -R 777 /var/run/secrets && rm -rf /var/run/secrets
# Update and upgrade packages in a writable environment
RUN apk update && apk upgrade --force-overwrite --no-cache && \
apk --no-cache add ca-certificates
Expand Down

0 comments on commit 5cfc08c

Please sign in to comment.