File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 2525 type=ref,event=tag
2626 type=sha
2727 - name : Set up QEMU
28- uses : docker/setup-qemu-action@master
29- with :
30- platforms : all
28+ uses : docker/setup-qemu-action@v1
3129 - name : Set up Docker Buildx
3230 uses : docker/setup-buildx-action@v1
3331 - name : Login to GAR
3937 - name : Build and push
4038 uses : docker/build-push-action@v2
4139 with :
42- context : .
4340 push : ${{ github.event_name != 'pull_request' }}
4441 tags : ${{ steps.meta.outputs.tags }}
4542 labels : ${{ steps.meta.outputs.labels }}
Original file line number Diff line number Diff line change 11FROM golang:1.17-alpine as build
22WORKDIR /app
33COPY . .
4- RUN go mod tidy && GOOS=linux go build -o sidecar main.go
4+ RUN go mod tidy && CGO_ENABLED=0 GOOS=linux go build -o sidecar main.go
55
66FROM scratch
7+ USER 1000
78WORKDIR /app
89COPY --from=build /app/config.yml .
910COPY --from=build /app/sidecar .
You can’t perform that action at this time.
0 commit comments