Skip to content

Update workflow

Update workflow #7

name: Apptainer Build

Check failure on line 1 in .github/workflows/apptainer-image.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/apptainer-image.yml

Invalid workflow file

`workflow_dispath` is not a valid event name
on:
push:
tags:
- "v*"
workflow_dispath:
inputs:
IMAGE_TAG:
description: 'Tag of the image to build'
default: 'latest'
required: false
defaults:
run:
shell: bash
env:
APPTAINER_VERSION: 1.2.5
ORAS_VERSION: 1.1.0
jobs:
build-and-push-image:
runs-on: ubuntu-latest
name: Build Apptainer image
permissions:
contents: write
packages: write
steps:
- name: Clear up space
uses: easimon/maximize-build-space@master
with:
remove-dotnet: 'true'
remove-android: 'true'
remove-haskell: 'true'
remove-codeql: 'true'
remove-docker-images: 'true'
- name: Install Apptainer
with:
apptainer-version: '1.2.5'
uses: uw-psych/apptainer-actions/setup@main
- name: Check out code for the container build
uses: actions/checkout@v4
- name: Build and push Apptainer image
uses: uw-psych/apptainer-actions/build-and-push@main
with:
deffile: Singularity
xtrace: 'true'
apptainer-tmpdir: ${{ github.workspace }}/apptainer-tmp
image-dir: ${{ github.workspace }}