Skip to content

Commit

Permalink
Merge pull request #5995 from shaneknapp/fix-kubectl-auth
Browse files Browse the repository at this point in the history
[DH-301] Fix kubectl auth and logic for deploying
  • Loading branch information
shaneknapp authored Aug 22, 2024
2 parents cb5a5dc + 5830cf7 commit 567f3df
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/deploy-jupyterhub-base-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ jobs:
echo "DEPLOY=1" >> $GITHUB_ENV
fi
done
echo "Deploying base hub images to all deployments"
if [[ -n "${DEPLOY}" ]]; then
echo "Deploying base hub images to all deployments"
else
echo "No hub images to deploy"
fi
- name: Setup python
if: ${{ env.DEPLOY }}
Expand Down Expand Up @@ -57,11 +61,12 @@ jobs:
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 }}

project_id: ${{ secrets.GCP_PROJECT_ID }}

- name: Install SOPS
if: ${{ env.DEPLOY }}
Expand Down

0 comments on commit 567f3df

Please sign in to comment.