forked from cern-eos/eos_exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
38 lines (36 loc) · 902 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
stages:
- publish
- deploy
compile:
stage: publish
image: gitlab-registry.cern.ch/rvalverd/eos_exporter:latest
script:
- |
# compile eos_exporter
mkdir public
make rpm
cp *.rpm public
retry: 1
artifacts:
name: eos_exporter_"$CI_COMMIT_REF_NAME"
paths:
- public
expire_in: 1 week
when: on_success
public: true
# rules:
# - if: $CI_COMMIT_TAG
deployment:
stage: deploy
# Execute only on tag on master
only:
- tags
# rules:
# - if: $CI_COMMIT_BRANCH == 'gl-ci-test'
except:
- branches
image: gitlab-registry.cern.ch/ci-tools/ci-web-deployer:latest
script:
- |
echo "ssh -o StrictHostKeyChecking=no -o GSSAPITrustDns=yes -o GSSAPIAuthentication=yes -o GSSAPIDelegateCredentials=yes [email protected] createrepo --update $EOS_PATH" >> /sbin/deploy-eos-xrdcp.sh
deploy-eos