Build and Push Singularity Image #10
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Push Singularity Image | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: X86 | |
defaults: | |
run: | |
shell: bash | |
working-directory: ./singularity | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
#- name: Build Singularity Image | |
# run: | | |
# sudo singularity build ciroh-ngen-singularity.sif singularity_ngen.def | |
- name: Push Singularity Image to Library | |
run: | | |
sudo singularity push -U ciroh-ngen-singularity.sif library://awiciroh/ngiab/ciroh-ngen-singularity:latest | |
env: | |
SINGULARITY_HUB_TOKEN: ${{ secrets.SINGULARITY_HUB_TOKEN }} |