-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 1.04 KB
/
test-workflow.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: "test-workflow"
on:
workflow_dispatch:
jobs:
create-default-kube-services:
permissions:
id-token: write
contents: read
name: "Test"
runs-on: ubuntu-latest
defaults:
run:
shell: bash
working-directory: ./kubernetes-terraform-config
steps:
- name: Checkout
uses: actions/checkout@v4
- id: 'auth'
name: 'Authenticate to Google Cloud'
uses: 'google-github-actions/auth@v2'
with:
create_credentials_file: true
workload_identity_provider: 'projects/1006240973223/locations/global/workloadIdentityPools/gha-create-gke-cluster/providers/github-actions'
service_account: '[email protected]'
- id: 'get-credentials'
name: Get GKE creds
uses: 'google-github-actions/get-gke-credentials@v2'
with:
cluster_name: code-idp-gke
location: europe-west1
- name: Deploy to GKE
run: |
kubectl get pods -n submissions-2024