-
Notifications
You must be signed in to change notification settings - Fork 13
36 lines (32 loc) · 1.04 KB
/
deploy.yaml
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
name: Deployment
concurrency: production
on:
push:
branches:
- master
env:
DEPLOY_TO: production
CLUSTER_ID: c6bbmpjw0i2st0vc9gr0
IMAGE_NAME: us.icr.io/cloud-annotations/frontend:${{ github.sha }}
CLIENT_ID: ${{ secrets.CLIENT_ID }}
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}
IBMCLOUD_API_KEY: ${{ secrets.IBMCLOUD_API_KEY }}
jobs:
deployment:
runs-on: ubuntu-latest
environment: production
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "*"
- name: Install IBM Cloud CLI
run: |
curl -fsSL https://clis.cloud.ibm.com/install/linux | sh
ibmcloud plugin install container-registry
ibmcloud plugin install container-service
- name: Install Kubernetes CLI
run: |
curl --progress-bar -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
- name: Deploy
run: ./deploy.sh