mirror of
https://bitbucket.org/svk28/rac-gui
synced 2024-12-04 18:46:52 +00:00
25 lines
1.4 KiB
YAML
25 lines
1.4 KiB
YAML
# This is a sample build configuration for Other.
|
|
# Check our guides at https://confluence.atlassian.com/x/5Q4SMw for more examples.
|
|
# Only use spaces to indent your .yml configuration.
|
|
# -----
|
|
# You can specify a custom docker image from Docker Hub as your build environment.
|
|
image: svk28/rac-gui-build:centos8
|
|
|
|
pipelines:
|
|
default:
|
|
- step:
|
|
script:
|
|
- WORKDIR=/home/rpmbuild
|
|
#- ls -R -la ${WORKDIR}
|
|
- 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')
|
|
- mkdir ${WORKDIR}/rac-gui
|
|
- cp * ${WORKDIR}/rac-gui
|
|
- tar czf ${WORKDIR}/rpmbuild/SOURCES/rac-gui-${VERSION}-${RELEASE}.tar.gz ${WORKDIR}/rac-gui
|
|
- 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
|