@@ -26,24 +26,24 @@ jobs:
2626 packages : write
2727 contents : read
2828 steps :
29- - name : Check out the repo
30- uses : actions/checkout@v3
31- with :
29+ - name : Check out the repo
30+ uses : actions/checkout@v3
31+ with :
3232 ref : ${{ github.event.inputs.release_tag || github.event.workflow_run.head_branch }}
3333
34- - name : Set up Singularity
34+ - name : Set up Singularity
3535 uses : eWaterCycle/setup-singularity@v7
36- with :
36+ with :
3737 singularity-version : 3.8.7
3838
3939 - name : Log in to GitHub Container Registry for Singularity
4040 run : |
4141 echo ${{ secrets.GITHUB_TOKEN }} | singularity remote login -u ${{ github.actor }} --password-stdin oras://ghcr.io
4242
43- - name : Determine tag
43+ - name : Determine tag
4444 id : tag
45- run : |
46- if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
45+ run : |
46+ if [ "${{ github. event_name }}" == "workflow_dispatch" ]; then
4747 if [ -n "${{ github.event.inputs.release_tag }}" ]; then
4848 TAG="${{ github.event.inputs.release_tag }}"
4949 else
@@ -56,11 +56,11 @@ jobs:
5656 echo "tag=${TAG}" >> $GITHUB_OUTPUT
5757
5858 - name : Build and push Singularity images
59- run : |
60- TAG="${{ steps. tag.outputs.tag }}"
59+ run : |
60+ TAG="${{ steps.tag.outputs.tag }}"
6161
6262 # Build Singularity image from the Docker image
63- singularity build pyprophet. sif docker://ghcr.io/${{ github.repository }}:${TAG}
63+ singularity build pyprophet.sif docker://ghcr.io/${{ github.repository }}:${TAG}
6464
6565 # Push to GHCR with -sif suffix
6666 singularity push pyprophet.sif oras://ghcr.io/${{ github.repository }}-sif:${TAG}
0 commit comments