Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Remove dirty tag from rekor-cli --version #341

Merged
merged 1 commit into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ signature
rekor.pub
*~
*.test
vendor/
10 changes: 6 additions & 4 deletions Dockerfile.rekor-cli.rh
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ WORKDIR /opt/app-root/src/hack/tools
RUN go mod vendor

WORKDIR /opt/app-root/src
RUN git stash && \
RUN git update-index --assume-unchanged Dockerfile.rekor-cli.rh && \
export GIT_VERSION=$(git describe --tags --always --dirty) && \
git stash pop && \
export GIT_HASH=$(git rev-parse HEAD) && \
export BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') && \
go mod vendor && \
make Makefile.swagger && \
make -f Build.mak cross-platform && \
Expand All @@ -24,8 +25,9 @@ RUN git stash && \
gzip rekor_cli_darwin_arm64 && \
gzip rekor_cli_linux_arm64 && \
gzip rekor_cli_linux_ppc64le && \
gzip rekor_cli_linux_s390x
#
gzip rekor_cli_linux_s390x && \
git update-index --no-assume-unchanged Dockerfile.rekor-cli.rh

#Install stage
FROM registry.access.redhat.com/ubi9/ubi-minimal@sha256:73f7dcacb460dad137a58f24668470a5a2e47378838a0190eef0ab532c6e8998

Expand Down
Loading