File tree Expand file tree Collapse file tree 1 file changed +54
-0
lines changed Expand file tree Collapse file tree 1 file changed +54
-0
lines changed Original file line number Diff line number Diff line change 1+ name : build bdsim apptainers
2+
3+ on :
4+ release :
5+ types :
6+ - published
7+
8+ jobs :
9+
10+ apptainer-bdsim :
11+ name : build apptainer images from docker images
12+ runs-on : ubuntu-latest
13+ container : bdsim/alma9-apptainer
14+
15+ strategy :
16+ fail-fast : false
17+ matrix :
18+ bdsim : [alma9-g4.10.7-bdsim, alma9-g4.11.0-bdsim,
19+ alma9-g4.11.1-bdsim, alma9-g4.11.2-bdsim,
20+ alma9-g4.11.3-bdsim]
21+
22+ steps :
23+ - name : Dump job context
24+ env :
25+ JOB_CONTEXT : ${{ toJson(job) }}
26+ run : echo "$JOB_CONTEXT"
27+
28+ - name : Check out the repo
29+ uses : actions/checkout@v4
30+
31+ - name : Flatten bdsim containers
32+ shell : bash
33+ run : |
34+ singularity build ${{ bdsim }}_develop.sif docker:bdsim/${{ bdsim }}:develop
35+
36+ - name : Create Release
37+ id : create_release
38+ uses : ncipollo/release-action@v1
39+ with :
40+ name : Release ${{ github.ref }}
41+ token : ${{ secrets.GITHUB_TOKEN }}
42+ draft : false
43+ prerelease : false
44+ allowUpdates : true
45+
46+ - name : Upload Release Asset
47+ id : upload-release-asset
48+ uses : actions/upload-release-asset@v1
49+ env :
50+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
51+ with :
52+ upload_url : ${{ steps.create_release.outputs.upload_url }}
53+ asset_path : ./${{ bdsim }}_develop.sif
54+ asset_name : ${{ bdsim }}_develop.sif
You can’t perform that action at this time.
0 commit comments