We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No description provided.
The text was updated successfully, but these errors were encountered:
Here's what I did for my other project. Am pretty happy with it
FROM golang:alpine WORKDIR /go/src/app COPY . . ENV USER=go \ UID=1000 \ GID=1000 \ GOOS=linux \ GOARCH=amd64 \ CGO_ENABLED=0 RUN go build -ldflags="-s -w" -o webhook && \ addgroup --gid "$GID" "$USER" && \ adduser \ --disabled-password \ --gecos "" \ --home "$(pwd)" \ --ingroup "$USER" \ --no-create-home \ --uid "$UID" \ "$USER" && \ chown "$UID":"$GID" /go/src/app/webhook FROM scratch ENV GIN_MODE=release \ METRICS=true COPY --from=0 /etc/passwd /etc/passwd COPY --from=0 /go/src/app/webhook / USER 1000 ENTRYPOINT ["/webhook"]
Sorry, something went wrong.
I've added environment variables DOCKER_USERNAME and DOCKER_PASSWORD in travis for publishing docker images via ci.
DOCKER_USERNAME
DOCKER_PASSWORD
Here's what I did for my other go project to publish docker images via travis.
done with #17
nickshine
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: