fix: Make sure getting version fails if not all dirs were copied

This commit is contained in:
Gerald Pinder 2024-08-20 09:53:59 -04:00
parent e4ad31c047
commit f13b67637b
2 changed files with 6 additions and 2 deletions

View file

@ -194,10 +194,11 @@ version:
RUN apt-get update && apt-get install -y jq
WORKDIR /app
COPY --keep-ts --dir src/ template/ recipe/ utils/ /app
COPY --keep-ts --dir src/ template/ recipe/ utils/ process/ /app
COPY --keep-ts Cargo.* /app
RUN echo "$(cargo metadata --no-deps --format-version 1 | jq -r '.packages[] | select(.name == "blue-build") .version')" > /version
RUN /bin/bash -c 'set -eo pipefail; cargo metadata --no-deps --format-version 1 \
| jq -r ".packages[] | select(.name == \"blue-build\") .version" > /version'
SAVE ARTIFACT /version

View file

@ -48,3 +48,6 @@ workspace = true
[features]
sigstore = ["dep:tokio"]
[patch.crates-io]
sigstore = { git = "https://github.com/gmpinder/sigstore-rs.git", rev = "3a804bff" }