mounting directory to home directory instead of workspace #49
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: halld_recon | |
on: | |
push: | |
branches: [rasool_gluex_ci_testing] | |
pull_request: | |
branches: [rasool_gluex_ci_testing] | |
jobs: | |
jana2_halld_recon: | |
name: halld_recon | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
path: JANA2 | |
- uses: cvmfs-contrib/github-action-cvmfs@v4 | |
- name: Make all container scripts executable | |
run: | | |
ls . | |
chmod +x ./JANA2/containers/scripts/*.sh | |
- name: Build JANA2 | |
run: | | |
docker run --rm \ | |
--user $(id -u):$(id -g) \ | |
--volume /cvmfs/oasis.opensciencegrid.org/gluex/group/:/group \ | |
--mount type=bind,source=${{ github.workspace }},target=/ \ | |
raiqarasool/rjones-gluex:latest /bin/bash -c "source /JANA2/containers/scripts/jana_build.sh" | |
- name: Git Clone Halld_recon | |
run: | | |
mkdir halld_recon | |
cd halld_recon | |
git clone --branch rasool_jana2 https://github.com/JeffersonLab/halld_recon.git . | |
- name: Build Halld_recon | |
run: | | |
docker run --rm \ | |
--user $(id -u):$(id -g) \ | |
--volume /cvmfs/oasis.opensciencegrid.org/gluex/group/:/group \ | |
--mount type=bind,source=${{ github.workspace }},target=/ \ | |
raiqarasool/rjones-gluex:latest /bin/bash -c "source /JANA2/containers/scripts/halld_recon_build.sh" | |