fix: Make sure getting version fails if not all dirs were copied
This commit is contained in:
parent
e4ad31c047
commit
f13b67637b
2 changed files with 6 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -48,3 +48,6 @@ workspace = true
|
|||
|
||||
[features]
|
||||
sigstore = ["dep:tokio"]
|
||||
|
||||
[patch.crates-io]
|
||||
sigstore = { git = "https://github.com/gmpinder/sigstore-rs.git", rev = "3a804bff" }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue