|
@@ -1,5 +1,7 @@
|
|
#!/bin/bash
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
+set -x
|
|
|
|
+
|
|
DESTDIR=./dist
|
|
DESTDIR=./dist
|
|
VERSION=$(git describe --tag | sed 's/^v//')
|
|
VERSION=$(git describe --tag | sed 's/^v//')
|
|
ITERATION=1
|
|
ITERATION=1
|
|
@@ -26,6 +28,8 @@ install -v -m 644 $BINARY.toml $DESTDIR/usr/share/$BINARY/
|
|
install -v -m 644 ca-chain.cert.pem $DESTDIR/etc/$BINARY/
|
|
install -v -m 644 ca-chain.cert.pem $DESTDIR/etc/$BINARY/
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
+docker run --rm -i -t -v $PWD:/scw -v $PWD/rpmmacros:/home/build/.rpmmacros -w /scw scw-centos7-build:latest \
|
|
fpm -s dir -t $PKG_TYPE -C $DESTDIR --name $BINARY \
|
|
fpm -s dir -t $PKG_TYPE -C $DESTDIR --name $BINARY \
|
|
--version $VERSION \
|
|
--version $VERSION \
|
|
--iteration $ITERATION \
|
|
--iteration $ITERATION \
|
|
@@ -37,6 +41,7 @@ fpm -s dir -t $PKG_TYPE -C $DESTDIR --name $BINARY \
|
|
-p $OUTDIR \
|
|
-p $OUTDIR \
|
|
--rpm-sign
|
|
--rpm-sign
|
|
|
|
|
|
|
|
+
|
|
ok=$?
|
|
ok=$?
|
|
|
|
|
|
rm -rf $DESTDIR
|
|
rm -rf $DESTDIR
|
|
@@ -46,7 +51,9 @@ if [ $ok -eq 0 -a -f "$rpm_file" ]; then
|
|
# rm -f "$RPM_DIR/$BINARY-*.rpm"
|
|
# rm -f "$RPM_DIR/$BINARY-*.rpm"
|
|
cp "$rpm_file" "$RPM_DIR"
|
|
cp "$rpm_file" "$RPM_DIR"
|
|
|
|
|
|
|
|
+ docker run --rm -i -t -v $RPM_DIR:/rpms -w /rpms scw-centos7-build:latest \
|
|
|
|
+ createrepo -v . \
|
|
|
|
+
|
|
(cd "$RPM_DIR" && \
|
|
(cd "$RPM_DIR" && \
|
|
- createrepo -v . && \
|
|
|
|
rsync -av --progress --delete . fender.spyz.org:/srv/http-vhosts/rpm.scraperwall.com/centos7/)
|
|
rsync -av --progress --delete . fender.spyz.org:/srv/http-vhosts/rpm.scraperwall.com/centos7/)
|
|
fi
|
|
fi
|