-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(docker): docker builds now image and does not dep from goreleaser
- Loading branch information
1 parent
e6ff515
commit 0fea00e
Showing
3 changed files
with
14 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.idea | ||
dist | ||
static | ||
wiki | ||
.cobra.yaml | ||
signOSX.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,7 @@ | ||
FROM alpine:3.16 | ||
ARG VERSION | ||
ARG GITHUB_REPOSITORY | ||
WORKDIR /opt | ||
USER root | ||
ENV DOWNLOAD_LINK="https://github.com/${GITHUB_REPOSITORY}/releases/download/${VERSION}/otc-auth_${VERSION}_linux_amd64.tar.gz" | ||
RUN apk update && \ | ||
apk add --no-cache "curl" && \ | ||
rm -rf /var/cache/apk/*echo $DOWNLOAD_LINK && \ | ||
curl -LO $DOWNLOAD_LINK && \ | ||
tar -zxvf otc-auth* && \ | ||
mv otc-auth * /usr/local/bin/ | ||
FROM golang:1.20-alpine as builder | ||
WORKDIR /otc-auth | ||
COPY . . | ||
RUN CGO_ENABLED=0 go build . | ||
|
||
FROM alpine:3.18 | ||
COPY --from=builder /otc-auth/otc-auth /usr/local/bin/otc-auth |