Add chown and rpmsign step to rpm build
This commit is contained in:
parent
8d1ebc0112
commit
d332828551
1 changed files with 6 additions and 0 deletions
|
|
@ -46,6 +46,8 @@ done
|
|||
sudo apt-get -y install createrepo-c rpm
|
||||
docker build -f Dockerfile.rpmbuild -t bouquin-sqlcipher4-rpm:f42 --progress=plain .
|
||||
docker run --rm -v "$PWD":/src -v "$PWD/dist/rpm":/out bouquin-sqlcipher4-rpm:f42
|
||||
sudo chown -R "${USER}" "$PWD/dist"
|
||||
|
||||
REPO_ROOT="${HOME}/git/repo_rpm"
|
||||
RPM_REPO="${REPO_ROOT}/rpm/x86_64"
|
||||
BUILD_OUTPUT="${HOME}/git/bouquin-sqlcipher4/dist"
|
||||
|
|
@ -61,6 +63,10 @@ createrepo_c "$RPM_REPO"
|
|||
echo "==> Signing repomd.xml..."
|
||||
qubes-gpg-client --local-user "$KEYID" --detach-sign --armor "$RPM_REPO/repodata/repomd.xml" > "$RPM_REPO/repodata/repomd.xml.asc"
|
||||
|
||||
for file in `ls -1 "$PWD/dist/rpm"`; do
|
||||
rpmsign --addsign "$PWD/dist/rpm/$file"
|
||||
done
|
||||
|
||||
echo "==> Syncing repo to server..."
|
||||
rsync -aHPvz --exclude=.git --delete "$REPO_ROOT/" "$REMOTE/"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue