1
0
mirror of https://bitbucket.org/svk28/rac-gui synced 2024-12-04 18:46:52 +00:00

bitbucket-pipelines.yml отредактирован онлайн на Bitbucket

This commit is contained in:
Sergey Kalinin 2020-07-23 18:48:26 +00:00
parent 5ddacb33d6
commit 654729b790

View File

@ -9,19 +9,13 @@ pipelines:
default:
- step:
script:
- cd /home/rpmbuild
- whoami
- chmod -R 777 /files
- ./build-rpm.sh
- ls -1 /files | xargs -l bash -c 'curl ftp://nuk-svk.ru --user $FTP_USER:$FTP_PASS --upload-file -'
#image: atlassian/sftp-deploy:0.5.6
# variables:
# USER: '<string>'
# SERVER: '<string>'
# REMOTE_PATH: '<string>'
# LOCAL_PATH: '<string>' # Optional.
# SSH_KEY: '<string>' # Optional.
# PASSWORD: '<string>' # Optional.
# EXTRA_ARGS: '<string>' # Optional.
# DEBUG: '<boolean>' # Optional.
- WORKDIR=/home
- VERSION=$(grep Version rac_gui.tcl | grep -oE '\b[0-9]{1,2}\.[0-9]{1,2}\.[0-9]{1,2}\b')
- RELEASE=$(grep Release rac_gui.tcl | grep -oE '\b[0-9]{1,3}\b')
- tar czf --exclude=bitbucket-pipelines.yml ${WORKDIR}/rpmbuild/SOURCES/rac-gui-${VERSION}-${RELEASE}.tar.gz *
- cp rac_gui.spec ${WORKDIR}/rpmbuild/SPECS/rac_gui.spec
- sed -i "s/.*Version:.*/Version:\t${VERSION}/" ${WORKDIR}/rpmbuild/SPECS/rac_gui.spec
- sed -i "s/.*Release:.*/Release:\t${RELEASE}/" ${WORKDIR}/rpmbuild/SPECS/rac_gui.spec
- rpmbuild -ba ${WORKDIR}/rpmbuild/SPECS/rac_gui.spec
- curl ftp://nuk-svk.ru --user $FTP_USER:$FTP_PASS --upload-file ${WORKDIR}/rpmbuild/RPMS/noarch/rac-gui-${VERSION}-${RELEASE}.noarch.rpm
- curl ftp://nuk-svk.ru --user $FTP_USER:$FTP_PASS --upload-file ${WORKDIR}/rpmbuild/SRPMS/rac-gui-${VERSION}-${RELEASE}.src.rpm