mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 16:57:00 +08:00
.gitlab-ci.yml: fix rpm generation
Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
This commit is contained in:
@@ -146,7 +146,7 @@ RPM/epel7:
|
||||
- cp $TARFILE /usr/local/rpms/ocserv
|
||||
- cd /usr/local/rpms/ocserv
|
||||
- sed -i -e "s/$RPMVERSION/$NEWVERSION/" -e 's/have_gpgv2 1/have_gpgv2 0/g' *.spec
|
||||
- test "$RPMVERSION" != "$NEWVERSION" && cat sources|grep -v "ocserv-$RPMVERSION" >sources.tmp
|
||||
- ( test "$RPMVERSION" != "$NEWVERSION" && cat sources|grep -v "ocserv-$RPMVERSION" >sources.tmp ) || /bin/true
|
||||
- sha512sum --tag ocserv-$NEWVERSION.tar.xz >>sources.tmp
|
||||
- mv sources.tmp sources
|
||||
- touch ocserv-$NEWVERSION.tar.xz.sig
|
||||
@@ -183,7 +183,7 @@ RPM/epel8:
|
||||
- cp $TARFILE /usr/local/rpms/ocserv
|
||||
- cd /usr/local/rpms/ocserv
|
||||
- sed -i -e "s/$RPMVERSION/$NEWVERSION/" -e 's/have_gpgv2 1/have_gpgv2 0/g' *.spec
|
||||
- test "$RPMVERSION" != "$NEWVERSION" && cat sources|grep -v "ocserv-$RPMVERSION" >sources.tmp
|
||||
- ( test "$RPMVERSION" != "$NEWVERSION" && cat sources|grep -v "ocserv-$RPMVERSION" >sources.tmp ) || /bin/true
|
||||
- sha512sum --tag ocserv-$NEWVERSION.tar.xz >>sources.tmp
|
||||
- mv sources.tmp sources
|
||||
- touch ocserv-$NEWVERSION.tar.xz.sig
|
||||
|
||||
Reference in New Issue
Block a user