Skip to content

Commit 7d2a89d

Browse files
author
mohdsaid497566
committed
another approach: build and store then test
1 parent dcb169b commit 7d2a89d

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

.github/workflows/container-image.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,36 @@ jobs:
1313
with:
1414
path: pr
1515

16-
- name: Set up & Build Images
16+
- name: Build & Store Images
1717
run: |
1818
sudo apt-get update
1919
sudo apt-get install -y software-properties-common openssh-client
2020
sudo add-apt-repository -y ppa:apptainer/ppa
2121
sudo apt-get install -y apptainer
2222
sudo apptainer config fakeroot --enable $(whoami)
23+
24+
mkdir -p ~/.ssh
25+
echo "${{secrets.SSH_PRIVATE_KEY}}" >~/.ssh/id_rsa
26+
chmod 600 ~/.ssh/id_rsa
27+
ssh-keyscan -H ap40.uw.osg-htc.org >> ~/.ssh/known_hosts
28+
2329
(cd pr/.github/workflows/images && sudo apptainer build mfc_cpu.sif Singularity.cpu)
30+
scp pr/.github/workflows/images/mfc_cpu.sif ${{secrets.SSH_USER}}:MFC/mfc_cpu.sif
31+
rm -rf pr/.github/workflows/images/mfc_cpu.sif
32+
2433
(cd pr/.github/workflows/images && sudo apptainer build mfc_cpu_bench.sif Singularity.cpu_bench)
34+
scp pr/.github/workflows/images/mfc_cpu_bench.sif ${{secrets.SSH_USER}}:MFC/mfc_cpu_bench.sif
35+
rm -rf pr/.github/workflows/images/mfc_cpu_bench.sif
36+
2537
(cd pr/.github/workflows/images && sudo apptainer build mfc_gpu.sif Singularity.gpu)
38+
scp pr/.github/workflows/images/mfc_gpu.sif ${{secrets.SSH_USER}}:MFC/mfc_gpu.sif
39+
rm -rf pr/.github/workflows/images/mfc_gpu.sif
40+
2641
(cd pr/.github/workflows/images && sudo apptainer build mfc_gpu_bench.sif Singularity.gpu_bench)
42+
scp pr/.github/workflows/images/mfc_gpu_bench.sif ${{secrets.SSH_USER}}:MFC/mfc_gpu_bench.sif
43+
rm -rf pr/.github/workflows/images/mfc_gpu_bench.sif
2744
28-
- name: Test and Store Images
45+
- name: Test Images
2946
run: |
3047
mkdir -p ~/.ssh
3148
echo "${{secrets.SSH_PRIVATE_KEY}}" >~/.ssh/id_rsa

0 commit comments

Comments
 (0)