Skip to content
box

GitHub Action

Setup apptainer

v2.0.0 Latest version

Setup apptainer

box

Setup apptainer

Setup apptainer an open source container platform

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Setup apptainer

uses: eWaterCycle/[email protected]

Learn more about this action in eWaterCycle/setup-apptainer

Choose a version

typescript-action status DOI

This action enables you to easily use apptainer images in your GitHub action workflows.

GitHub Action to setup apptainer

To use apptainer containers in a workflow you need to install it first. This GitHub Action downloads 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@v2
  with:
    apptainer-version: 1.3.0
- name: Run an apptainer container
  run: apptainer run docker://alpine cat /etc/os-release

Contributing

If you want to contribute to the development of apptainer-setup action, have a look at the contribution guidelines.