File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 5858 id : buildx
5959 uses : docker/setup-buildx-action@v1
6060 - name : Login to DockerHub
61- uses : docker/login-action@v1
61+ uses : docker/login-action@v2
6262 with :
63- username : ${{ secrets.DOCKERHUB_USERNAME }}
63+ username : jpillora
6464 password : ${{ secrets.DOCKERHUB_TOKEN }}
6565 - name : Docker meta
6666 id : docker_meta
Original file line number Diff line number Diff line change 11# build stage
2- FROM golang:1.19 as build
3- LABEL maintainer="dev@jpillora.com"
4- ENV CGO_ENABLED 0
2+ FROM golang:alpine AS build
3+ RUN apk update && apk add git
54ADD . /src
65WORKDIR /src
7- RUN go mod download
6+ ENV CGO_ENABLED 0
87RUN go build \
98 -ldflags "-X github.com/jpillora/chisel/share.BuildVersion=$(git describe --abbrev=0 --tags)" \
10- -o chisel
9+ -o /tmp/bin
1110# run stage
1211FROM scratch
13- COPY --from=alpine:latest /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
12+ LABEL maintainer="dev@jpillora.com"
13+ COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
1414WORKDIR /app
15- COPY --from=build /src/chisel /app/chisel
16- ENTRYPOINT ["/app/chisel " ]
15+ COPY --from=build /tmp/bin /app/bin
16+ ENTRYPOINT ["/app/bin " ]
You can’t perform that action at this time.
0 commit comments