Skip to content

Commit

Permalink
less bad deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
brevans committed May 19, 2020
1 parent 0269e76 commit 9295a0a
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .ycrc/update_dsq_module.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
#!/bin/bash
shopt -s expand_aliases
#set -o xtrace
source /etc/yalehpc
DSQ_CV=1.03
DSQ_NV=$( echo "${DSQ_CV} + 0.01" | bc )
DSQ_CV=$( module load dSQ && dsq --version 2>&1 | cut -d" " -f2 )
DSQ_NV=$( curl --silent "https://api.github.com/repos/ycrc/dSQ/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/' )


module load EasyBuild && \
eb dSQ-${DSQ_CV}.eb --try-software-version=${DSQ_NV} && \
cd ~/repos/ycrc-ebfiles && \
if [ ! $DSQ_CV == $DSQ_NV ]
then
cd ~/repos/ycrc-ebfiles && \
git pull && \
module load EasyBuild && \
eb dSQ-${DSQ_CV}.eb --try-software-version=${DSQ_NV} && \
git add easyconfigs/dSQ/dSQ-${DSQ_NV}.eb && \
git commit -m "installed dSQ v${DSQ_NV} on ${cluster}" && \
git push

else
echo "dSQ is up to date!"
fi

0 comments on commit 9295a0a

Please sign in to comment.