Skip to content

Commit 185c4d2

Browse files
committed
test commit
1 parent 995c872 commit 185c4d2

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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 }}

0 commit comments

Comments
 (0)