Skip to content

Commit

Permalink
Add workflow and starter scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
dfornika committed Apr 23, 2024
1 parent a646dc6 commit 8d63975
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/scripts/build_container_images.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

for env_yaml in ./environments/*.yml; do
echo "building $env_yaml..."
done
11 changes: 11 additions & 0 deletions .github/scripts/install_apptainer.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

set -eo pipefail

wget https://raw.githubusercontent.com/apptainer/apptainer/main/tools/install-unprivileged.sh

chmod +x install-unprivileged.sh

mkdir -p /opt/apptainer

./install-unprivileged.sh /opt/apptainer
19 changes: 19 additions & 0 deletions .github/workflows/build_containers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Demo Push

on:
pull_request:

jobs:
push:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v4
- name: Install Apptainer
run: |
.github/scripts/install_apptainer.sh
- name: Build images
run: |
.github/scripts/build_container_images.sh

0 comments on commit 8d63975

Please sign in to comment.