Skip to content

Commit 5c3c9cd

Browse files
committed
update staging deployment
1 parent d38ab4e commit 5c3c9cd

2 files changed

Lines changed: 19 additions & 4 deletions

File tree

.github/workflows/staging.yaml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,25 @@ jobs:
8383

8484
steps:
8585
- name: Checkout code
86-
uses: actions/checkout@v2
86+
uses: actions/checkout@v4
87+
88+
- name: Login (GCP)
89+
uses: google-github-actions/auth@v2
90+
with:
91+
credentials_json: ${{ secrets.CREDENTIALS_JSON }}
92+
93+
- name: Install (Gcloud)
94+
uses: google-github-actions/setup-gcloud@v2
95+
with:
96+
project_id: crane-cloud-274413
97+
install_components: "gke-gcloud-auth-plugin"
8798

88-
- uses: azure/k8s-set-context@v1
99+
- name: Login (Kubernetes Cluster)
100+
uses: google-github-actions/get-gke-credentials@v2
89101
with:
90-
kubeconfig: ${{ secrets.RENU_KUBECONFIG}}
102+
cluster_name: staging-cluster
103+
location: us-central1-a
104+
project_id: crane-cloud-274413
91105

92106
- name: Add Repo (cranecloud)
93107
run: |

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Database API
2-
32
[![Coverage Status](https://coveralls.io/repos/github/crane-cloud/database-api/badge.svg?branch=develop)](https://coveralls.io/github/crane-cloud/database-api?branch=develop)
3+
[![Prod](https://github.com/crane-cloud/database-api/actions/workflows/prod.yml/badge.svg?branch=develop)](https://github.com/crane-cloud/database-api/actions/workflows/prod.yml)
4+
[![staging](https://github.com/crane-cloud/database-api/actions/workflows/staging.yaml/badge.svg?branch=develop&event=deployment_status)](https://github.com/crane-cloud/database-api/actions/workflows/staging.yaml)
45

56
The database API offers a convenient and efficient way to create MySQL and PostgreSQL databases for users on the Crane Cloud platform
67

0 commit comments

Comments
 (0)