77 deploy_CVMFS :
88 runs-on : " ubuntu-latest"
99 steps :
10-
11- # 1️⃣ Checkout your repository
1210 - name : Checkout repo
1311 uses : actions/checkout@v3
1412
15- # 2️⃣ Install system dependencies
16- - name : Install system packages
13+ # 1️⃣ Create Conda environment with Grid packages
14+ - name : Create Conda environment
1715 run : |
18- sudo apt-get update
19- sudo apt-get install -y \
20- fetch-crl \
16+ curl -sSL https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -o miniconda.sh
17+ bash miniconda.sh -b -p $HOME/miniconda
18+ export PATH="$HOME/miniconda/bin:$PATH"
19+ conda init bash
20+ eval "$(conda shell.bash hook)"
21+ conda create -y -c conda-forge -n cvmfs-env \
2122 ca-policy-lcg \
22- grid-proxy-utils \
2323 gct \
2424 gsissh \
25- ssh-client \
26- openssl \
27- curl \
28- wget
25+ openssl=3.0.7 \
26+ voms-proxy-init
2927
30- # 3️⃣ Set up grid trust anchors and fetch CRLs
31- - name : Update CRLs
28+ # 2️⃣ Activate Conda environment and set CA path
29+ - name : Setup Grid environment
3230 run : |
33- export X509_CERT_DIR=/etc/grid-security/certificates
34- sudo fetch-crl -v
31+ eval "$(conda shell.bash hook)"
32+ conda activate cvmfs-env
33+ export X509_CERT_DIR=$CONDA_PREFIX/etc/grid-security/certificates
34+
35+ # Fetch CRLs
36+ fetch-crl -v
37+
38+ # Debug
3539 ls -l $X509_CERT_DIR | head
40+ grid-proxy-info -all || true
3641
37- # 4️⃣ Decode the proxy and set environment
42+ # 3️⃣ Decode the proxy and set environment
3843 - name : Set X509 Proxy
3944 env :
4045 CVMFS_PROXY_BASE64 : ${{ secrets.CVMFS_PROXY_BASE64 }}
@@ -44,14 +49,14 @@ jobs:
4449 export X509_USER_PROXY=$PWD/cvmfs.proxy
4550 grid-proxy-info -all
4651
47- # 5️⃣ Prepare SSH known_hosts
48- - name : SSH Known Hosts
52+ # 4️⃣ Prepare SSH known_hosts
53+ - name : SSH known_hosts
4954 run : |
5055 mkdir -p ~/.ssh
5156 ssh-keyscan -p 1975 cvmfs-uploader-egi.gridpp.rl.ac.uk >> ~/.ssh/known_hosts
5257 chmod 644 ~/.ssh/known_hosts
5358
54- # 6️⃣ Run CVMFS deployment via gsissh
59+ # 5️⃣ Run CVMFS deployment via gsissh
5560 - name : Deploy via gsissh
5661 run : |
5762 gsissh -vvv -p 1975 -t cvmfs-uploader-egi.gridpp.rl.ac.uk \
0 commit comments