Skip to content

Change name

Change name #2

name: build bdsim apptainers

Check failure on line 1 in .github/workflows/buildapptainers.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/buildapptainers.yaml

Invalid workflow file

(Line: 33, Col: 14): Unrecognized named-value: 'dockerimage'. Located at position 1 within expression: dockerimage, (Line: 53, Col: 23): Unrecognized named-value: 'dockerimage'. Located at position 1 within expression: dockerimage, (Line: 54, Col: 23): Unrecognized named-value: 'dockerimage'. Located at position 1 within expression: dockerimage
on:
release:
types:
- published
jobs:
apptainer-bdsim:
name: build apptainer images from docker images
runs-on: ubuntu-latest
container: bdsim/alma9-apptainer
strategy:
fail-fast: false
matrix:
dockerimage: [alma9-g4.10.7-bdsim, alma9-g4.11.0-bdsim,
alma9-g4.11.1-bdsim, alma9-g4.11.2-bdsim,
alma9-g4.11.3-bdsim]
steps:
- name: Dump job context
env:
JOB_CONTEXT: ${{ toJson(job) }}
run: echo "$JOB_CONTEXT"
- name: Check out the repo
uses: actions/checkout@v4
- name: Flatten bdsim containers
shell: bash
run: |
singularity build ${{ dockerimage }}_develop.sif docker:bdsim/${{ dockerimage }}:develop
- name: Create Release
id: create_release
uses: ncipollo/release-action@v1
with:
name: Release ${{ github.ref }}
token: ${{ secrets.GITHUB_TOKEN }}
draft: false
prerelease: false
allowUpdates: true
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./${{ dockerimage }}_develop.sif
asset_name: ${{ dockerimage }}_develop.sif