]> git.pld-linux.org Git - projects/cleanbuild.git/commitdiff
Fetch git tag from container
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 24 Aug 2021 15:52:32 +0000 (18:52 +0300)
committerElan Ruusamäe <glen@pld-linux.org>
Tue, 24 Aug 2021 15:52:33 +0000 (18:52 +0300)
This avoids permisson issues when mixing users

bin/cleanbuild-docker.sh

index 1f2b07552a27eb1cfd8e98fc21e00728b03a86da..8aa1482a5001de17822c99c5b137a1cde7473ca3 100755 (executable)
@@ -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() {
This page took 0.12876 seconds and 4 git commands to generate.