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