10
10
workflow_dispatch :
11
11
12
12
jobs :
13
- configure-kubectl-oke-test :
13
+ test-action-home-region :
14
14
runs-on : ubuntu-latest
15
- name : Test the kubectl action against a demo cluster
15
+ name : Test the action in the tenancy home region
16
16
env :
17
17
OCI_CLI_USER : ${{ secrets.OCI_CLI_USER }}
18
18
OCI_CLI_TENANCY : ${{ secrets.OCI_CLI_TENANCY }}
@@ -22,11 +22,32 @@ jobs:
22
22
steps :
23
23
- uses : actions/checkout@v2
24
24
25
- - name : Configure Kubectl for OKE
25
+ - name : Configure Kubectl for OKE cluster in home region
26
26
uses : ./
27
27
id : test-configure-kubectl-oke-action
28
28
with :
29
29
cluster : ${{ secrets.OKE_CLUSTER_ID }}
30
30
31
- - name : Get pods
31
+ - name : Get pods using Kubectl
32
32
run : kubectl get pods -A
33
+
34
+ test-action-new-region :
35
+ runs-on : ubuntu-latest
36
+ name : Test the action in a new region
37
+ env :
38
+ OCI_CLI_USER : ${{ secrets.OCI_CLI_USER }}
39
+ OCI_CLI_TENANCY : ${{ secrets.OCI_CLI_TENANCY }}
40
+ OCI_CLI_FINGERPRINT : ${{ secrets.OCI_CLI_FINGERPRINT }}
41
+ OCI_CLI_KEY_CONTENT : ${{ secrets.OCI_CLI_KEY_CONTENT }}
42
+ OCI_CLI_REGION : ${{ secrets.OCI_CLI_NEW_REGION }}
43
+
44
+ steps :
45
+ - uses : actions/checkout@v2
46
+ - name : Configure Kubectl for OKE cluster in new region
47
+ uses : ./
48
+ id : test-configure-kubectl-oke-action-new-region
49
+ with :
50
+ cluster : ${{ secrets.OKE_NEW_CLUSTER_OCID }}
51
+
52
+ - name : Get pods using Kubectl
53
+ run : kubectl get nodes -A
0 commit comments