[projects/cleanbuild] Fetch git tag from container
glen
glen at pld-linux.org
Tue Aug 24 17:53:14 CEST 2021
commit 4fbca347eecbdf4811eb5f3b4b851a87388a2cd8
Author: Elan Ruusamäe <glen at pld-linux.org>
Date: Tue Aug 24 18:52:32 2021 +0300
Fetch git tag from container
This avoids permisson issues when mixing users
bin/cleanbuild-docker.sh | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
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() {
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/cleanbuild.git/commitdiff/4fbca347eecbdf4811eb5f3b4b851a87388a2cd8
More information about the pld-cvs-commit
mailing list