-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
31d5074
commit f646b3e
Showing
3 changed files
with
52 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: "Manual K8s Deployment" | ||
|
||
on: | ||
workflow_dispatch: # This allows the workflow to be manually triggered | ||
|
||
jobs: | ||
kubernetes: | ||
name: "Deploy K8s manifests" | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 # Checks out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
|
||
- name: Set up Google Cloud SDK | ||
uses: google-github-actions/setup-gcloud@v0.2.1 | ||
with: | ||
service_account_key: ${{ secrets.GCP_SA_KEY }} | ||
project_id: ${{ secrets.PROJECT_ID }} | ||
|
||
- name: Get GKE credentials | ||
run: | | ||
gcloud container clusters get-credentials automl-cluster --region us-east1 --project automateml | ||
- name: Deploy to GKE | ||
run: | | ||
kubectl apply -f cloud-infra/k8s/ |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters