@@ -70,24 +70,36 @@ jobs:
7070 cache-to : type=gha,mode=max
7171 provenance : false
7272
73-
7473 - name : Set up Singularity
7574 if : ${{ (github.event.inputs.push_images == true || github.event.inputs.push_images == '') }}
7675 uses : eWaterCycle/setup-singularity@v7
7776 with :
7877 singularity-version : 3.8.7
7978
80- - name : Convert and Push DiaNN 2.1.0 Singularity container (Latest)
79+ - name : Pull Docker image for Singularity conversion
80+ if : ${{ (github.event.inputs.push_images == true || github.event.inputs.push_images == '') }}
81+ run : |
82+ # Pull the Docker image from GitHub Container Registry
83+ docker pull ghcr.io/bigbio/diann:2.1.0
84+ # Save the Docker image to a tar file
85+ docker save ghcr.io/bigbio/diann:2.1.0 -o diann-2.1.0.tar
86+
87+ - name : Convert Docker image to Singularity
88+ if : ${{ (github.event.inputs.push_images == true || github.event.inputs.push_images == '') }}
89+ run : |
90+ # Convert Docker tar to Singularity SIF
91+ singularity build diann-2.1.0.sif docker-archive://diann-2.1.0.tar
92+ # Verify the SIF file exists
93+ ls -la diann-2.1.0.sif
94+
95+ - name : Push DiaNN 2.1.0 Singularity container
8196 if : ${{ (github.event.inputs.push_images == true || github.event.inputs.push_images == '') }}
8297 uses : nick-fields/retry@v2
8398 with :
8499 timeout_minutes : 15
85100 max_attempts : 3
86101 retry_wait_seconds : 60
87102 command : |
88- # Convert Docker image to Singularity SIF
89- singularity build diann-2.1.0.sif docker-daemon://ghcr.io/bigbio/diann:2.1.0
90-
91103 # Push to GitHub Container Registry
92104 singularity push diann-2.1.0.sif oras://ghcr.io/bigbio/diann-sif:2.1.0
93105 singularity push diann-2.1.0.sif oras://ghcr.io/bigbio/diann-sif:2.1.0-${{ steps.date.outputs.DATE_TAG }}
0 commit comments