Skip to content

Commit

Permalink
add remote login
Browse files Browse the repository at this point in the history
  • Loading branch information
benlee0423 committed Mar 7, 2024
1 parent 7c8dbff commit 4a08c3d
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/singularity_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,19 @@ on:
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: |
cd singularity
sudo singularity build ciroh-ngen-singularity.sif singularity_ngen.def
#- name: Build Singularity Image
# run: |
# sudo singularity build ciroh-ngen-singularity.sif singularity_ngen.def

- name: Push Singularity Image to Library
run: |
cd singularity
echo ${{ secrets.SINGULARITY_TOKEN }} | singularity remote login -u ${{ secrets.SINGULARITY_USERNAME }} --password-stdin
sudo singularity push -U ciroh-ngen-singularity.sif library://awiciroh/ngiab/ciroh-ngen-singularity:latest

0 comments on commit 4a08c3d

Please sign in to comment.