feat: rewrite the release pipeline to make it clean (#2038)

* refactor: modify cache path of Dockerfile

* feat: rewrite the release pipeline to make it clean
This commit is contained in:
zyy17
2023-07-31 12:57:04 +08:00
committed by GitHub
parent 7727508485
commit 45832475d0
14 changed files with 1087 additions and 488 deletions

View File

@@ -26,7 +26,7 @@ ENV PATH /opt/rh/rh-python38/root/usr/bin:/usr/local/bin:/root/.cargo/bin/:$PATH
# Build the project in release mode.
RUN --mount=target=.,rw \
--mount=type=cache,target=/usr/local/cargo/registry \
--mount=type=cache,target=/root/.cargo/registry \
make build \
CARGO_PROFILE=${CARGO_PROFILE} \
FEATURES=${FEATURES} \

View File

@@ -7,7 +7,8 @@ ENV LANG en_US.utf8
WORKDIR /greptimedb
# Install dependencies.
RUN apt-get update && apt-get install -y \
RUN --mount=type=cache,target=/var/cache/apt \
apt-get update && apt-get install -y \
libssl-dev \
protobuf-compiler \
curl \
@@ -25,7 +26,7 @@ ENV PATH /root/.cargo/bin/:$PATH
# Build the project in release mode.
RUN --mount=target=.,rw \
--mount=type=cache,target=/usr/local/cargo/registry \
--mount=type=cache,target=/root/.cargo/registry \
make build \
CARGO_PROFILE=${CARGO_PROFILE} \
FEATURES=${FEATURES} \