-
Notifications
You must be signed in to change notification settings - Fork 969
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Resolve final docker build issues (#210)
- Loading branch information
Showing
6 changed files
with
42 additions
and
28 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
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,11 +1,22 @@ | ||
FROM oryd/xgoreleaser:1.13.5 | ||
FROM oryd/xgoreleaser:1.13.7 | ||
|
||
WORKDIR /go/src/github.com/ory/kratos | ||
WORKDIR /home/project | ||
|
||
ADD . . | ||
ADD go.mod go.mod | ||
ADD go.sum go.sum | ||
|
||
RUN go mod download | ||
|
||
ENV RELEASE_NAME=v0.0.0-alpha.1 | ||
ENV DOCKER_SHORT_TAG=v0.0.0-alpha.1 | ||
|
||
ADD . . | ||
ENTRYPOINT ["goreleaser"] | ||
CMD ["--snapshot", "--skip-publish", "--rm-dist"] | ||
|
||
# docker build -f .docker/Dockerfile-goreleaser -t build .; docker run --rm build | ||
# Manual for debugging: | ||
# docker build -f .docker/Dockerfile-goreleaser -t build .; docker run --rm build | ||
# | ||
# or: | ||
# docker rm -f build || true; docker build -f .docker/Dockerfile-goreleaser -t build .; docker run --name build --entrypoint /bin/bash -it build | ||
# goreleaser --snapshot --skip-publish --rm-dist |
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.