Skip to content

Commit

Permalink
Update deployment.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
atsareg authored Dec 2, 2024
1 parent ab6a982 commit 33c4ee7
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 33c4ee7

Please sign in to comment.