Skip to content

Commit

Permalink
add proper logic for deploying or not
Browse files Browse the repository at this point in the history
  • Loading branch information
shaneknapp committed Aug 22, 2024
1 parent d1ae27b commit 5830cf7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 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,13 +61,13 @@ 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 }}
run: |
Expand Down

0 comments on commit 5830cf7

Please sign in to comment.