fix: Git sha not present during cargo install (#176)

This commit is contained in:
Gerald Pinder 2024-05-05 00:44:22 -04:00 committed by GitHub
parent ad7a0f075e
commit c2abf3fcb8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 32 additions and 64 deletions

View file

@ -53,15 +53,21 @@ build-scripts:
FROM alpine
LABEL org.opencontainers.image.source="https://github.com/blue-build/cli"
COPY --dir scripts/ /
FOR script IN $(ls /scripts | grep -e '.*\.sh$')
FOR script IN "$(ls /scripts | grep -e '.*\.sh$')"
RUN echo "Making ${script} executable" && \
chmod +x scripts/${script}
chmod +x "scripts/${script}"
END
DO --pass-args +LABELS
ARG EARTHLY_GIT_HASH
SAVE IMAGE --push $IMAGE:$EARTHLY_GIT_HASH-build-scripts
SAVE IMAGE --push "$IMAGE:$EARTHLY_GIT_HASH-build-scripts"
ARG TAGGED="false"
ARG LATEST="false"
IF [ "$TAGGED" = "true" ] && [ "$LATEST" ]
SAVE IMAGE --push "$IMAGE:latest-build-scripts"
END
blue-build-cli:
ARG BASE_IMAGE="registry.fedoraproject.org/fedora-toolbox"