Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix main-branc -> main #2

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 6 additions & 9 deletions .github/workflows/builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@ name: singularity-deploy

on:
push:
# This branch does not exist! You should update this to be your "production" branch
# and ensure that when you work on recipes you only merge to this branch when it's time to release
# You can also use another GitHub trigger entirely
branches:
- "main-branch"
- "main"

jobs:
release:
Expand Down Expand Up @@ -48,7 +45,7 @@ jobs:
run: |
repo=$(echo "${GITHUB_REPOSITORY/\//-}")

# For each Singularity* container, build based on the prefix (tag)
# For each Singularity* container, build based on the prefix (tag)
for recipe in $(ls Singularity*); do
echo "Building $recipe"
tag=$(echo "${recipe/Singularity\./}")
Expand All @@ -61,17 +58,17 @@ jobs:
container="$repo:$tag.sif"
singularity build --fakeroot container.sif "$recipe"
if [ "$?" == "0" ]; then
echo "Successfully built container $container."
echo "Successfully built container $container."
mv container.sif "$container"
else
echo "There was an issue building $container."
echo "There was an issue building $container."
fi
done
- name: Upload Release Assets
if: ${{ env.release_tag != env.latest_tag }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
upload_url: ${{ steps.create_release.outputs.upload_url }}
upload_url: ${{ steps.create_release.outputs.upload_url }}
tag_name: ${{ env.release_tag }}
run: |
hub release edit $(find . -type f -name "*.sif" -printf "-a %p ") -m "" "$tag_name"
hub release edit $(find . -type f -name "*.sif" -printf "-a %p ") -m "" "$tag_name"
Loading