To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit f4d841d8 authored by Bengt Giger's avatar Bengt Giger
Browse files

Using artifacts for deploy stage

parent 52cfb41f
Pipeline #80383 failed with stages
in 3 minutes and 8 seconds
......@@ -26,7 +26,10 @@ build:
- cd ..
- rsync -r . $REMOTE_SERVER:$REMOTE_DIR
- ssh $REMOTE_SERVER "createrepo $REMOTE_DIR"
artifacts:
paths:
- RPMS/x86_64
expire_in: 1 day
tags:
- docker
......@@ -60,15 +63,7 @@ test_update:
Deploy:
stage: deploy
script:
- export LANG=C
- export REMOTE_SERVER=w3_idinstallprd@idinstallprd
- export REMOTE_DIR=htdocs/repos/rpmbuilder/tomcat8
- VERSION=$(curl -s https://downloads.apache.org/tomcat/tomcat-8/| grep v8| cut -d '"' -f6 | tr -d "v/"|tail -n1 )
- sed s/__VERSION__/$VERSION/g tomcat8.spec.template >SPECS/tomcat8.spec
- rpmbuild --undefine=_disable_source_fetch -ba --clean --define "_topdir `pwd`" --define "buildroot `pwd`/BUILDROOT" --define "_rpmdir `pwd`/RPMS" --define "_source_filedigest_algorithm md5" --define "_binary_filedigest_algorithm md5" --define "_source_payload nil" --define "_binary_payload nil" --define "%_gpg_name ID-CD RPM Signing" SPECS/tomcat8.spec
- cd RPMS/x86_64
- for RPM in $(ls *.rpm); do export RPM; ../../rpm-sign.exp; done
- cd ..
- cd RPMS
- rsync -r . $REMOTE_SERVER:$REMOTE_DIR
- ssh $REMOTE_SERVER "createrepo $REMOTE_DIR"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment