Back to home page

EIC code displayed by LXR

 
 

    


Warning, /run-cvmfs-osg-eic-shell/action.yml is written in an unsupported language. File is not indexed.

0001 name: 'execute user code in an EIC environment'
0002 description: 'Spawns appropriate docker image and executes user code in the environment of a specified EIC shell'
0003 branding:
0004   icon: 'play'
0005   color: 'blue'
0006 inputs:
0007   organization:
0008     description: 'EIC shell organization you are targeting (e.g. eic)'
0009     required: false
0010     default: 'eicweb'
0011   platform:
0012     description: 'EIC shell platform you are targeting (e.g. eic_xl)'
0013     required: false
0014     default: ''
0015   release:
0016     description: 'EIC shell release you are targeting (e.g. 3.0-stable)'
0017     required: false
0018     default: ''
0019   platform-release:
0020     description: 'EIC shell release platform string you are targeting (e.g. eic_xl:24.11.2-stable)'
0021     required: false
0022     default: ''
0023   run:
0024     description: 'They payload code you want to execute on top of the view'
0025     required: false
0026     default: ''
0027   setup:
0028     description: 'Environment initialization bash script that is sourced (e.g. install/bin/thisepic.sh)'
0029     required: false
0030     default: ''
0031   sandbox-path:
0032     description: 'Custom path where the sandbox is located'
0033     required: false
0034     default: ''
0035   apptainer_version:
0036     description: 'Apptainer version to use (e.g. v1.4.5 or latest)'
0037     required: false
0038     default: 'v1.4.5'
0039   apptainer_deb_cache:
0040     description: 'Location (directory) of the cached apptainer deb.'
0041     required: false
0042     default: 'apptainer_deb_cache'
0043 
0044 runs:
0045   using: "composite"
0046   steps:
0047     - name: Restore cached apptainer package
0048       id: cache-restore
0049       uses: actions/cache@v4
0050       with:
0051         key: apptainer-deb-cache-${{ inputs.apptainer_version }}
0052         path: |
0053           ${{ inputs.apptainer_deb_cache }}
0054     - name: Run inside eic-shell
0055       id: run-eic-shell
0056       run: |
0057         ${{ github.action_path }}/setup-eic-shell.sh
0058       shell: bash
0059       env:
0060         THIS: ${{ github.action_path }}
0061         GITHUB_ACTOR: ${{ github.actor }}
0062         EIC_SHELL_ORGANIZATION: ${{ inputs.organization }}
0063         EIC_SHELL_RELEASE: ${{ inputs.release }}
0064         EIC_SHELL_PLATFORM_RELEASE: ${{ inputs.platform-release }}
0065         EIC_SHELL_PLATFORM: ${{ inputs.platform }}
0066         RUN: ${{ inputs.run }}
0067         SETUP: ${{ inputs.setup }}
0068         SANDBOX_PATH: ${{ inputs.sandbox-path }}
0069         APPTAINER_DEB_CACHE: ${{ inputs.apptainer_deb_cache }}
0070         APPTAINER_VERSION: ${{ inputs.apptainer_version }}
0071     - name: Store apptainer package to cache
0072       uses: actions/cache/save@v4
0073       if: steps.run-eic-shell.outputs.cache-update == 'true'      
0074       with:
0075         key: apptainer-deb-cache-${{ inputs.apptainer_version }}
0076         path: |
0077           ${{ inputs.apptainer_deb_cache }}