Skip to content

Warning

You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?

Setup apptainer

Actions
Setup apptainer an open source container platform
v1.0.0
Star (11)

Tags

 (1)

typescript-action status

GitHub Action to setup apptainer

To use apptainer containers in a workflow you need to install it first. This GitHub Action downloads, compiles and installs it for you.

The setup will add the apptainer executable to the PATH env var so it can be called in later steps.

Inputs

apptainer-version

Version of apptainer. See releases page for available versions. Version string should start with major version, not with v character.

Example usage

steps:
- uses: actions/checkout@v2
- uses: eWaterCycle/setup-apptainer@v1
  with:
    apptainer-version: 1.0.3
- name: Run an apptainer container
  run: apptainer run docker://alpine cat /etc/os-release

Build

For developers of setup-apptainer action.

First, you'll need to have a reasonably modern version of node handy. This won't work with versions older than 9, for instance.

Install the dependencies

$ npm install

Build the typescript and package it for distribution

$ npm run build && npm run package

Publish to a distribution branch

Actions are run from GitHub repos so we will checkin the packed dist folder.

Then run ncc and push the results:

$ npm run package
$ git add dist
$ git commit -a -m "prod dependencies"
$ git push origin releases/v1

Note: We recommend using the --license option for ncc, which will create a license file for all of the production node modules used in your project.

Your action is now published! 🚀

See the versioning documentation

Validate

You can now validate the action by referencing ./ in a workflow in your repo (see test.yml)

uses: ./
with:
  apptainer-version: 1.0.3

See the actions tab for runs of this action! 🚀

Usage:

After testing you can create a v1 tag to reference the stable and latest V1 action

Setup apptainer is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Setup apptainer an open source container platform
v1.0.0

Tags

 (1)

Setup apptainer is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.