Skip to content

Commit

Permalink
only upload to aws
Browse files Browse the repository at this point in the history
  • Loading branch information
stebo85 committed Sep 9, 2024
1 parent d0fdb2b commit 14e3449
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,14 @@ if [ -f "${IMAGENAME}_${BUILDDATE}.tar" ]; then
rm -rf ${IMAGENAME}_${BUILDDATE}.tar
fi

echo "[DEBUG] Attempting upload to Nectar Object Storage ..."
rclone copy --progress $IMAGE_HOME/${IMAGENAME}_${BUILDDATE}.simg nectar:/neurodesk/temporary-builds-new
# echo "[DEBUG] Attempting upload to Nectar Object Storage ..."
# rclone copy --progress $IMAGE_HOME/${IMAGENAME}_${BUILDDATE}.simg nectar:/neurodesk/temporary-builds-new

echo "[DEBUG] Attempting upload to AWS Object Storage ..."
rclone copy --progress $IMAGE_HOME/${IMAGENAME}_${BUILDDATE}.simg aws-neurocontainers:/neurocontainers/temporary-builds-new

if curl --output /dev/null --silent --head --fail "https://object-store.rc.nectar.org.au/v1/AUTH_dead991e1fa847e3afcca2d3a7041f5d/neurodesk/temporary-builds-new/${IMAGENAME}_${BUILDDATE}.simg"; then
# if curl --output /dev/null --silent --head --fail "https://object-store.rc.nectar.org.au/v1/AUTH_dead991e1fa847e3afcca2d3a7041f5d/neurodesk/temporary-builds-new/${IMAGENAME}_${BUILDDATE}.simg"; then
if curl --output /dev/null --silent --head --fail "https://d15yxasja65rk8.cloudfront.net/temporary-builds-new/${IMAGENAME}_${BUILDDATE}.simg"; then
echo "[DEBUG] ${IMAGENAME}_${BUILDDATE}.simg was freshly build and exists now :)"
echo "[DEBUG] cleaning up $IMAGE_HOME/${IMAGENAME}_${BUILDDATE}.simg"
rm -rf $IMAGE_HOME/${IMAGENAME}_${BUILDDATE}.simg
Expand Down

0 comments on commit 14e3449

Please sign in to comment.