Skip to content

Commit d33ff5d

Browse files
committed
only cpu image
1 parent 165970f commit d33ff5d

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

.github/workflows/container-image.yml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,29 @@ jobs:
1313
with:
1414
path: pr
1515

16-
- name: Test and Store Images on Shared Resource
16+
- name: Set up Singularity Images
17+
run: |
18+
sudo apt-get update
19+
sudo apt-get install -y software-properties-common apptainer openssh-client
20+
sudo add-apt-repository -y ppa:apptainer/ppa
21+
sudo apptainer config fakeroot --enable $(whoami)
22+
(cd pr/.github/workflows/images && sudo apptainer build mfc_cpu.sif Singularity.cpu)
23+
24+
- name: Test and Store Images
1725
run: |
1826
mkdir -p ~/.ssh
1927
echo "${{secrets.SSH_PRIVATE_KEY}}" >~/.ssh/id_rsa
2028
chmod 6000 ~/.ssh/id_rsa
2129
ssh-keyscan -H ap40.uw.osg-htc.org >> ~/.ssh/known_hosts
2230
scp pr/.github/workflows/images/mfc_cpu.sif ${{secrets.SSH_USER}}:MFC/mfc_cpu.sif
23-
# ssh ${{secrets.SSH_USER}} "
24-
# apptainer run --fakeroot MFC/mfc_cpu.sif test -a --no-build --no-mpi
25-
# "
31+
ssh ${{secrets.SSH_USER}} "
32+
apptainer run --fakeroot MFC/mfc_cpu.sif test -a --no-build --no-mpi
33+
"
34+
35+
- name: Upload images as artifacts
36+
uses: actions/upload-artifact@v4
37+
if: always()
38+
with:
39+
name: singularity-images
40+
path: |
41+
pr/.github/workflows/images/*

0 commit comments

Comments
 (0)