Skip to content

Commit 165970f

Browse files
committed
testing current workflow
1 parent e0e1106 commit 165970f

File tree

1 file changed

+10
-20
lines changed

1 file changed

+10
-20
lines changed

.github/workflows/container-image.yml

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,14 @@ jobs:
1212
uses: actions/checkout@v4
1313
with:
1414
path: pr
15-
- name: Set up Singularity
16-
run: |
17-
sudo apt-get update
18-
sudo apt-get install -y software-properties-common
19-
sudo add-apt-repository -y ppa:apptainer/ppa
20-
sudo apt-get update
21-
sudo apt-get install -y apptainer
22-
whoami
23-
sudo apptainer config fakeroot --enable $(whoami)
24-
- name: Build Singularity Images
15+
16+
- name: Test and Store Images on Shared Resource
2517
run: |
26-
echo "Building Singularity CPU Image"
27-
(cd pr/.github/workflows/images && sudo apptainer build pr/.github/workflows/images/mfc_cpu.sif Singularity.cpu)
28-
apptainer run --fakeroot mfc_cpu.sif test -a --no-build --no-mpi
29-
- name: Upload images as artifacts
30-
uses: actions/upload-artifact@v4
31-
if: always()
32-
with:
33-
name: singularity-images
34-
path: |
35-
pr/.github/workflows/images/mfc_cpu.sif
18+
mkdir -p ~/.ssh
19+
echo "${{secrets.SSH_PRIVATE_KEY}}" >~/.ssh/id_rsa
20+
chmod 6000 ~/.ssh/id_rsa
21+
ssh-keyscan -H ap40.uw.osg-htc.org >> ~/.ssh/known_hosts
22+
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+
# "

0 commit comments

Comments
 (0)