summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElan Ruusamäe2021-08-24 15:52:32 (GMT)
committerElan Ruusamäe2021-08-24 15:52:33 (GMT)
commit4fbca347eecbdf4811eb5f3b4b851a87388a2cd8 (patch)
treebabdd5fd60a294a72b140a4a8590a1e7be3d4904
parente7779c1652fd4f4875b84d99c6aea5e5b4347b50 (diff)
downloadcleanbuild-4fbca347eecbdf4811eb5f3b4b851a87388a2cd8.zip
cleanbuild-4fbca347eecbdf4811eb5f3b4b851a87388a2cd8.tar.gz
Fetch git tag from container
This avoids permisson issues when mixing users
-rwxr-xr-xbin/cleanbuild-docker.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/cleanbuild-docker.sh b/bin/cleanbuild-docker.sh
index 1f2b075..8aa1482 100755
--- a/bin/cleanbuild-docker.sh
+++ b/bin/cleanbuild-docker.sh
@@ -96,8 +96,10 @@ package_prepare() {
docker exec --user=root -w / $name setfacl -m u:builder:--- /etc/resolv.conf
fi
- git_tag=$(GIT_DIR=$topdir/packages/$PACKAGE_NAME/.git git describe --tags --always)
+ notice "Find latest tag on the branch"
+ git_tag=$(docker exec -e GIT_DIR=$home/rpm/packages/$PACKAGE_NAME/.git $name git describe --tags --always)
buildlog=rpm/logs/${git_tag#auto/*/}.log
+ notice "Build log: $buildlog"
}
package_build() {