Skip to content

Commit

Permalink
Fix docker2singularity build output naming
Browse files Browse the repository at this point in the history
  • Loading branch information
HippocampusGirl committed Aug 6, 2021
1 parent 9935c23 commit bfb5a13
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,11 @@ jobs:
env:
DOCKER_IMAGE_NAME: ${{ needs.docker_build.outputs.tag }}
run: |
SINGULARITY_IMAGE_NAME=$(echo -n ${DOCKER_IMAGE_NAME} | tr -c '[:alnum:].' '-')
SINGULARITY_IMAGE_NAME="$(echo -n ${DOCKER_IMAGE_NAME} | tr -c '[:alnum:].' '-').singularity" # we need to add a suffix because docker2singularity removes the last dot and everything that follows
mkdir -p -v /output
docker-entrypoint.sh /docker2singularity.sh \
--name ${SINGULARITY_IMAGE_NAME} \
${DOCKER_IMAGE_NAME}
echo "::set-output name=image::${SINGULARITY_IMAGE_FILE}"
- name: Upload to server
shell: bash
Expand Down

0 comments on commit bfb5a13

Please sign in to comment.