diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 00000000..4d38de0f --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,25 @@ +# Golang CircleCI 2.0 configuration file +# +# Check https://circleci.com/docs/2.0/language-go/ for more details +version: 2 +jobs: + build: + docker: + # specify the version + - image: circleci/golang:1.10 + + # Specify service dependencies here if necessary + # CircleCI maintains a library of pre-built images + # documented at https://circleci.com/docs/2.0/circleci-images/ + # - image: circleci/postgres:9.4 + + #### TEMPLATE_NOTE: go expects specific checkout path representing url + #### expecting it in the form of + #### /go/src/github.com/circleci/go-tool + #### /go/src/bitbucket.org/circleci/go-tool + working_directory: /go/src/github.com/AliyunContainerService/terway + steps: + - checkout + + # specify any bash command here prefixed with `run: ` + - run: go build -ldflags '-X "main.gitVer=HEAD" ' -o terwayd . && cd plugin && go build -o terway . diff --git a/README-zh_CN.md b/README-zh_CN.md index c5d8f2f7..ab61521f 100644 --- a/README-zh_CN.md +++ b/README-zh_CN.md @@ -1,6 +1,8 @@ # Terway 网络插件 CNI plugin for alibaba cloud VPC/ENI +[![CircleCI](https://circleci.com/gh/AliyunContainerService/terway.svg?style=svg)](https://circleci.com/gh/AliyunContainerService/terway) + [English](./README.md) | 简体中文 ## 安装Kubernetes diff --git a/README.md b/README.md index 16764c03..5b6bc896 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ # Terway CNI Network Plugin CNI plugin for alibaba cloud VPC/ENI +[![CircleCI](https://circleci.com/gh/AliyunContainerService/terway.svg?style=svg)](https://circleci.com/gh/AliyunContainerService/terway) + English | [简体中文](./README-zh_CN.md) ## Try It: