diff --git a/.github/workflows/deploy-jupyterhub-base-images.yaml.disabled b/.github/workflows/deploy-jupyterhub-base-images.yaml similarity index 87% rename from .github/workflows/deploy-jupyterhub-base-images.yaml.disabled rename to .github/workflows/deploy-jupyterhub-base-images.yaml index c7650dae7..97bc73f97 100644 --- a/.github/workflows/deploy-jupyterhub-base-images.yaml.disabled +++ b/.github/workflows/deploy-jupyterhub-base-images.yaml @@ -58,14 +58,7 @@ jobs: if: ${{ env.DEPLOY }} uses: google-github-actions/setup-gcloud@v2 with: - install_components: 'gke-gcloud-auth-plugin,kubectl' - - - name: Get GKE credentials for the cluster - if: ${{ env.DEPLOY }} - uses: 'google-github-actions/get-gke-credentials@v2' - with: - cluster_name: ${{ secrets.GKE_CLUSTER_NAME }} - location: ${{ secrets.GKE_CLUSTER_LOCATION }} + install_components: 'gke-gcloud-auth-plugin' - name: Install SOPS if: ${{ env.DEPLOY }} @@ -94,7 +87,13 @@ jobs: - name: Deploy base hub images to staging if: ${{ env.DEPLOY }} run: | + ignored_directories=("template") while read deployment; do + for ignored in "${ignored_directories[@]}"; do + if [[ "${deployment}" == "${ignored}" ]]; then + continue 2 # skip to the next "while read deployment" + fi + done echo "Pretending to deploy base hub image to ${deployment} :P" echo "hubploy deploy --debug ${deployment} hub staging" - done < <(kubectl get namespaces -A | grep -e staging | awk -F"-" '{print$1}') + done < <(find deployments/ -maxdepth 1 -type d -printf '%f\n' | grep -v template)