Skip to content

eWaterCycle/setup-apptainer

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

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.