Skip to content

Commit

Permalink
Merge pull request #76 from openshift-cherrypick-robot/cherry-pick-75…
Browse files Browse the repository at this point in the history
…-to-release-4.15

[release-4.15] OCPBUGS-29079: Updates build-rpm.sh to set release to build time
  • Loading branch information
openshift-merge-bot[bot] committed Apr 24, 2024
2 parents 2e3cca1 + eee27be commit b88529a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions openshift-hack/build-rpm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ version=${1:-4.14.0}
dnf install -y rpmdevtools
dnf install -y createrepo
dnf builddep -y ecr-credential-provider.spec
# Trick to make sure we'll install this RPM later on, not the one from the repo.
release=999999999999

# Use the build time as the release, ensuring we install this build.
release=${2:-$(date -u +'%Y%m%dT%H%M%SZ')}

# NOTE: rpmbuild requires that inside the tar there will be a
# ${service}-${version} directory, hence this --transform option.
Expand Down

0 comments on commit b88529a

Please sign in to comment.