File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Production deploy
2+ on :
3+ workflow_dispatch : # click the button on Github repo!
4+
5+ jobs :
6+ # This workflow contains a single job called "build"
7+ build :
8+ # The type of runner that the job will run on
9+ runs-on : ubuntu-latest
10+ strategy :
11+ matrix :
12+ python-version : [3.6]
13+
14+ # Steps represent a sequence of tasks that will be executed as part of the job
15+ steps :
16+ - name : Install dependencies for kubectl
17+ run : |
18+ curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl
19+ chmod +x ./kubectl
20+ sudo mv ./kubectl /usr/local/bin/kubectl
21+
22+ - name : Deploy in staging
23+ env :
24+ GOOGLE_APPLICATION_CREDENTIALS : ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}
25+ run : |
26+ echo "$GOOGLE_APPLICATION_CREDENTIALS" | base64 --decode > /tmp/config
27+ export GOOGLE_APPLICATION_CREDENTIALS=/tmp/config
28+ export KUBECONFIG=deployment/promhub_kubeconfig
29+ chmod +x deployment/master/deploy.sh
30+ sh ./deployment/master/deploy.sh
You can’t perform that action at this time.
0 commit comments