Skip to content

PARSE_DIST Singularity Image CI #6

PARSE_DIST Singularity Image CI

PARSE_DIST Singularity Image CI #6

name: PARSE_DIST Singularity Image CI
on:
push:
paths:
- modules/local/parse_dist/**
workflow_dispatch:
env:
img_name: ${{ secrets.DOCKERHUB_USERNAME }}/samntrek-parse-dist
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-test-containers:
runs-on: ubuntu-latest
container:
image: quay.io/singularity/singularity:v4.1.0-slim
options: --privileged
steps:
- name: Check out code for the container builds
uses: actions/checkout@v2
- name: Build Container
working-directory: ./modules/local/parse_dist/
env:
recipe: singularity.def
run: |
singularity build container.sif ${{ env.recipe }}
- name: Login and Deploy Container
run: |
echo ${{ secrets.GITHUB_TOKEN }} | singularity remote login -u ${{ secrets.GHCR_USERNAME }} --password-stdin oras://ghcr.io
singularity push container.sif oras://ghcr.io/${env.img_name}:latest