File tree 1 file changed +34
-0
lines changed
1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change
1
+ # This is a basic workflow to help you get started with Actions
2
+
3
+ name : CI-MAIN
4
+
5
+ # Controls when the action will run.
6
+ on :
7
+ # Allows you to run this workflow manually from the Actions tab
8
+ push :
9
+ branches : [Devops_Feature_ImproveDeploymentCI]
10
+ workflow_dispatch :
11
+ # A workflow run is made up of one or more jobs that can run sequentially or in parallel
12
+ jobs :
13
+ # This workflow contains a single job called "build"
14
+ deploy :
15
+ # The type of runner that the job will run on
16
+ runs-on : ubuntu-latest
17
+
18
+ # Steps represent a sequence of tasks that will be executed as part of the job
19
+ steps :
20
+ # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
21
+ - uses : actions/checkout@v2
22
+ - name : create kubeconfig
23
+ run : |
24
+ echo "$KUBE_CONFIG_DATA" | base64 --decode > /tmp/config
25
+ echo KUBECONFIG=/tmp/config >> $GITHUB_ENV
26
+ env :
27
+ KUBE_CONFIG_DATA : ${{ secrets.TEST_KUBECONFIG }}
28
+ - name : verify kubectl
29
+ run : kubectl cluster-info
30
+ - name : deploy
31
+ run : ./travis/deploy.sh ${{ secrets.HKUBE_DOMAIN_RAW }}
32
+ env :
33
+ DOCKER_BUILD_PUSH_PASSWORD : ${{ secrets.DOCKER_BUILD_PUSH_PASSWORD }}
34
+ DOCKER_BUILD_PUSH_USERNAME : ${{ secrets.DOCKER_BUILD_PUSH_USERNAME }}
You can’t perform that action at this time.
0 commit comments