Skip to content

Commit

Permalink
Merge pull request #6001 from shaneknapp/truly-fix-hub-image-deploy-f…
Browse files Browse the repository at this point in the history
…or-reals

[DH-301] clean up and fix deployment logic
  • Loading branch information
shaneknapp authored Aug 23, 2024
2 parents 5269775 + 5bf5d78 commit d16f4c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy-jupyterhub-base-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,13 @@ jobs:
- name: Deploy base hub images to staging
if: ${{ env.DEPLOY }}
run: |
ignored_directories=("template")
ignored_directories=("template") # these are directories that we never want to deploy to
while read deployment; do
for ignored in "${ignored_directories[@]}"; do
if [[ "${deployment}" == "${ignored}" ]]; then
continue 2 # skip to the next "while read deployment"
continue 2 # skip to the next iteration of "while read deployment"
fi
done
echo "Pretending to deploy base hub image to ${deployment} :P"
echo "hubploy deploy --debug ${deployment} hub staging"
done < <(find deployments/ -maxdepth 1 -type d -printf '%f\n' | grep -v template)
done < <(ls deployments/ | sed -e 's,/,,g')

0 comments on commit d16f4c3

Please sign in to comment.