-
Notifications
You must be signed in to change notification settings - Fork 0
76 lines (48 loc) · 2.05 KB
/
oci-cli-oke-serverless.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Demo for OKE Serverless
run-name: ${{ github.actor }} is testing out GitHub Actions with OCI🚀 OKE Serverless
on: [workflow_dispatch]
env:
# Setting an environment variable with the value of a configuration variable
OCI_CLI_REGION: ${{ vars.VAR_OCI_CLI_REGION }}
OKE_CLUSTER_OCID: ${{ vars.VAR_OKE_CLUSTER_OCID }}
#REGISTRY: ${{ vars.VAR_REGISTRY }}
jobs:
my-instances:
runs-on: ubuntu-latest
#runs-on: self-hosted
name: Play with OKE Serverless
env:
OCI_CLI_USER: ${{ secrets.OCI_CLI_USER }}
OCI_CLI_TENANCY: ${{ secrets.OCI_CLI_TENANCY }}
OCI_CLI_FINGERPRINT: ${{ secrets.OCI_CLI_FINGERPRINT }}
OCI_CLI_KEY_CONTENT: ${{ secrets.OCI_CLI_KEY_CONTENT }}
#OCIR_TOKEN: ${{ secrets.OCIR_TOKEN }}
#OCIR_USERNAME: ${{ secrets.OCIR_USERNAME }}
steps:
- name: "Checkout Rep"
uses: actions/checkout@v3
- name: "list workspace"
run: ls -ltra
shell: bash
- name: "Get Cluster details"
uses: oracle-actions/[email protected]
with:
command: 'ce cluster get --cluster-id ${{ secrets.OKE_CLUSTER_OCID }}'
silent: False
- name: Configure Kubectl
uses: oracle-actions/[email protected]
id: test-configure-kubectl-oke-action
with:
cluster: ${{ secrets.OKE_CLUSTER_OCID }}
- name: Get Nodes
run: kubectl get nodes -A
- name: Create k8booster Namespace
run: kubectl apply -f k8booster/manifestNamespace.json
- name: Deploy Dummy App
run: kubectl apply -f k8booster/manifestDeploy.yaml
- name: Check Dummy App
run: kubectl get -f k8booster/manifestDeploy.yaml -o wide
- name: Create Load Balancer Service for Dummy App
run: kubectl apply -f k8booster/manifestService.yaml
- name: Check Service for Dummy App
run: kubectl get -f k8booster/manifestService.yaml -o wide