-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use goreleaser to release tarball and image, support brew install (#210)
- Loading branch information
Showing
5 changed files
with
80 additions
and
107 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 |
---|---|---|
|
@@ -53,3 +53,6 @@ _python37_home_/ | |
__debug_bin | ||
.vscode/ | ||
zz_* | ||
|
||
# version | ||
*z_update_version.go |
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,14 +1,21 @@ | ||
FROM ubuntu:20.04 | ||
|
||
COPY _build/bundles/kusion-linux/ /kusion/ | ||
|
||
RUN chmod +x /kusion/bin/kusion | ||
FROM golang:1.18 AS build | ||
COPY / /src | ||
WORKDIR /src | ||
RUN --mount=type=cache,target=/go/pkg --mount=type=cache,target=/root/.cache/go-build make build-local-linux | ||
|
||
FROM ubuntu:20.04 AS base | ||
# Install KCL Dependencies | ||
RUN apt-get update -y && apt-get install python3 python3-pip -y | ||
# unembed kcl stuff | ||
RUN /kusion/bin/kusion | ||
|
||
ENV PATH="/kusion/bin:/root/go/bin:${PATH}" | ||
ENV KUSION_PATH="/kusion" | ||
# KCL PATH | ||
ENV PATH="/root/go/bin:${PATH}" | ||
# KUSION_PATH | ||
ENV KUSION_PATH="$HOME/.kusion" | ||
ENV LANG=en_US.utf8 | ||
|
||
FROM base AS goreleaser | ||
COPY kusion /usr/local/bin/kusion | ||
RUN /usr/local/bin/kusion | ||
|
||
FROM base | ||
COPY --from=build /src/_build/bundles/kusion-linux/bin/kusion /usr/local/bin/kusion | ||
RUN /usr/local/bin/kusion |
This file was deleted.
Oops, something went wrong.