File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ check_release_tag() {
3838 if [ " $LATTEST_TAG " == " $CURRENT_TAG " ]; then
3939 echo " Packaging release tag: $LATTEST_TAG "
4040 else
41- echo " Warning: The current HEAD does 't match the latest tagged"
41+ echo " Warning: The current HEAD doesn 't match the latest tagged"
4242 echo " Warning: Please checkout the latest tag : $LATTEST_TAG "
4343 read -n 1 -p " Do you want to continue anyway [y/n]?" choice
4444 if [ " $choice " != " y" ]; then
Original file line number Diff line number Diff line change @@ -41,11 +41,16 @@ WORKDIR /parsec-tool
4141RUN git checkout $(git tag --sort=committerdate | tail -1)
4242RUN cargo build --release
4343
44+ # Save the current parsec-tool version and dependencies as defined by cargo and the current git commit hash
45+ RUN echo "$(cargo metadata --format-version=1 --no-deps --offline | jq -r '.packages[0].version')" > /build-env/parsec-tool-version
46+ RUN echo "$(cargo tree)" > /build-env/parsec-tool-dependencies
47+ RUN echo "$(git rev-parse HEAD)" > /build-env/parsec-tool-commit
48+
4449# ---------------------------------------------
4550# Docker Stage: Extracts build results from previous stages and adds in quickstart configs
4651FROM base_builder AS layout
4752
48- # # Add the built binaries into the image and make available on PATH
53+ # # Add the built binaries into the image
4954COPY --from=parsec_service_builder /parsec-service/target/release/parsec /parsec/bin/parsec
5055COPY --from=parsec_tool_builder /parsec-tool/target/release/parsec-tool /parsec/bin/parsec-tool
5156
You can’t perform that action at this time.
0 commit comments