Skip to content

Commit

Permalink
.copr/Makefile: Allow building RPM without git repo
Browse files Browse the repository at this point in the history
The Prow CI build job we have doesn't seem to keep the git repo around.
  • Loading branch information
jlebon committed Feb 6, 2024
1 parent e7cbe65 commit ba1b287
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .copr/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ srpm:
./ci/installdeps.sh
# similar to https://github.com/actions/checkout/issues/760, but for COPR
git config --global --add safe.directory '*'
# fetch tags so `git describe` gives a nice NEVRA when building the RPM
git fetch origin --tags
git submodule update --init --recursive
# if we have a git repo, fetch tags so `git describe` gives a nice NEVRA when
# building the RPM
[ ! -d .git ] || git fetch origin --tags
[ ! -d .git ] || git submodule update --init --recursive
# Our primary CI build goes via RPM rather than direct to binaries
# to better test that path, including our vendored spec file, etc.
make -C packaging -f Makefile.dist-packaging srpm
Expand Down

0 comments on commit ba1b287

Please sign in to comment.