From 33c4ee7fdeb62509170658e05d9cd5a696626652 Mon Sep 17 00:00:00 2001 From: Andrei Tsaregorodtsev Date: Mon, 2 Dec 2024 23:01:36 +0100 Subject: [PATCH] Update deployment.yml --- .github/workflows/deployment.yml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index 9519458fc5c..605c51a9b60 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -135,24 +135,25 @@ jobs: if: github.event_name == 'workflow_dispatch' needs: deploy-pypi steps: - - uses: conda-incubator/setup-miniconda@v3 - with: - channels: conda-forge,defaults - channel-priority: true + - name: prepare environment + run: | + conda create -c conda-forge -n cvmfs-env ca-policy-lcg openssl==3.0.7 gct - name: Deploy on CVMFS env: - CVMFS_PROXY_BASE64: ${{ secrets.CVMFS_PROXY_BASE64 }} + CVMFS_PROXY_BASE64: ${{ secrets.CVMFS_PROXY_BASE64 }} run: | - source /usr/share/miniconda3/etc/profile.d/conda.sh - conda create -n CVMFS_deploy ca-policy-lcg openssl=3.0.7 gct - conda activate CVMFS_deploy + eval "$(conda shell.bash hook)" && conda activate cvmfs-env + conda install ca-policy-lcg openssl==3.0.7 gct echo "$CVMFS_PROXY_BASE64" | base64 --decode > cvmfs.proxy - chmod 600 cvmfs.proxy export X509_USER_PROXY=cvmfs.proxy + chmod 600 cvmfs.proxy export PATH=/usr/share/miniconda3/bin:/opt/conda/bin/:/opt/conda/condabin:$PATH + type -a openssl + openssl version + type -a gsissh mkdir -p ~/.ssh/ && touch ~/.ssh/known_hosts ssh-keyscan cvmfs-upload01.gridpp.rl.ac.uk >> ~/.ssh/known_hosts - gsissh -p 1975 -t cvmfs-upload01.gridpp.rl.ac.uk /home/diracsgm/admin/sync_packages.sh + gsissh -p 1975 -t cvmfs-upload01.gridpp.rl.ac.uk /home/diracsgm/admin/sync_packages.sh -v - name: setup tmate session if: ${{ failure() }} uses: mxschmitt/action-tmate@v3