Repository navigation
85 lines (83 loc) · 2.11 KB
/
Copy pathroot-src-tarball.yml
File metadata and controls
85 lines (83 loc) · 2.11 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: 'Src Tarball'
on:
workflow_dispatch:
inputs:
major:
type: choice
description: Major
options:
- 6
- 7
- 8
required: true
default: 6
minor:
type: choice
description: Minor
options:
- 26
- 28
- 30
- 32
- 36
- 38
- 40
- 42
- 44
- 46
- 48
required: true
default: 40
patch:
type: choice
description: Patch
options:
- "00"
- "02"
- "04"
- "06"
- "08"
- "10"
- "12"
- "14"
- "16"
- "18"
- "20"
- "22"
- "24"
- "26"
- "28"
- "30"
required: true
default: "00"
jobs:
check-tag:
runs-on: ubuntu-latest
steps:
- name: Checkout the official ROOT repo
uses: actions/checkout@v6
with:
path: root
ref: v${{ inputs.major }}-${{ inputs.minor }}-${{ inputs.patch }}
- name: Install Kerberos utilities
run: sudo apt-get install -y krb5-user
- name: Install XRootD client
run: sudo apt-get -y install xrootd-client
- name: Create a Source Tarball
run: sh root/cmake/unix/makedistsrc.sh ${{ inputs.major }}.${{ inputs.minor }}.${{ inputs.patch }} root
- name: Copy Source Tarball to EOS
env:
RWEBEOS_KT: ${{ secrets.RWEBEOS_KT }}
KT_FILE_NAME: /tmp/decoded.keytab
EOS_PATH: /eos/project/r/root-eos/website/download
EOS_ENDPOINT: root://eosproject-r.cern.ch
KRB5CCNAME: /tmp/krb5cc
run: |
echo +++ Content
ls
echo +++ Retrieving the secret
echo ${RWEBEOS_KT} | base64 -d > ${KT_FILE_NAME}
echo +++ Creating the token
kinit -p ${{ secrets.KRB5USER }}@${{ secrets.KRB5REALM }} -kt ${KT_FILE_NAME}
echo +++ Running the copy
xrdcp -rf root_v${{ inputs.major }}.${{ inputs.minor }}.${{ inputs.patch }}.source.tar.gz ${EOS_ENDPOINT}/${EOS_PATH}/