Skip to content

Commit

Permalink
feat: upload releases to CVMFS
Browse files Browse the repository at this point in the history
  • Loading branch information
fstagni committed Dec 1, 2023
1 parent 70538bb commit 4937779
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,3 +125,26 @@ jobs:
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

deploy_CVMFS:
runs-on: "ubuntu-latest"
if: github.event_name != 'push' || github.repository == 'DIRACGrid/DIRAC'
steps:
- uses: conda-incubator/setup-miniconda@master
with:
miniforge-variant: Mambaforge
use-mamba: true
python-version: 3.11
mamba-version: "*"
channels: conda-forge,defaults
channel-priority: true
activate-environment: deploy_cvmfs
- name: Deploy on CVMFS
if: steps.check-tag.outputs.create-release == 'true'
env:
CVMFS_PROXY_BASE64: ${{ secrets.CVMFS_PROXY_BASE64 }}
run: |
mamba install gct
echo "$CVMFS_PROXY_BASE64" | base64 --decode > cvmfs.proxy
export X509_USER_PROXY=cvmfs.proxy
gsissh -p 1975 -t cvmfs-upload01.gridpp.rl.ac.uk /home/diracsgm/cvmfs_repo/admin/sync_packages.sh

0 comments on commit 4937779

Please sign in to comment.