-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #353 from iishiishii/main
Add separate Zenodo upload workflow for testing
- Loading branch information
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Update neurocontainers | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
upload_containers_simg: | ||
runs-on: self-hosted | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
token: ${{ secrets.ACCESS_TOKEN }} | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.8 | ||
- name : Check if singularity container files exist in nectar cloud and build & upload if not there | ||
run: | | ||
IMAGE_HOME=/home/runner | ||
IMAGENAME_BUILDDATE=dicomtools_1.0.0_20250204 | ||
echo "[DEBUG] ${IMAGENAME_BUILDDATE}.simg exists in temporary cache on nectar cloud" | ||
curl --output "$IMAGE_HOME/${IMAGENAME_BUILDDATE}.simg" "https://object-store.rc.nectar.org.au/v1/AUTH_dead991e1fa847e3afcca2d3a7041f5d/neurodesk/temporary-builds-new/${IMAGENAME_BUILDDATE}.simg" | ||
echo "Upload container $IMAGE_HOME/${IMAGENAME_BUILDDATE}.simg to Zenodo" | ||
echo $(find $IMAGE_HOME/${IMAGENAME_BUILDDATE}.simg) | ||
export DOI_URL=$(python3 .github/workflows/publish-doi.py --container_filepath="$IMAGE_HOME/${IMAGENAME_BUILDDATE}.simg" --container_name=${IMAGENAME_BUILDDATE} --token=${{ secrets.ZENODO_TOKEN }}) |