mirror of
https://github.com/notherealmarco/coredns-deployment.git
synced 2025-05-05 20:42:33 +02:00
update circleci to use kind (#196)
Signed-off-by: Sandeep Rajan <srajan@infoblox.com>
This commit is contained in:
parent
f0409d4492
commit
576c4b687a
1 changed files with 4 additions and 19 deletions
|
@ -20,28 +20,14 @@ integrationDefaults: &integrationDefaults
|
||||||
image: ubuntu-1604:201903-01
|
image: ubuntu-1604:201903-01
|
||||||
working_directory: ~/go/src/${CIRCLE_PROJECT_USERNAME}/deployment
|
working_directory: ~/go/src/${CIRCLE_PROJECT_USERNAME}/deployment
|
||||||
environment:
|
environment:
|
||||||
- K8S_VERSION: v1.13.3
|
- K8S_VERSION: v1.15.3
|
||||||
- KUBECONFIG: /home/circleci/.kube/config
|
- KUBECONFIG: /home/circleci/.kube/kind-config-kind
|
||||||
- MINIKUBE_VERSION: v0.33.1
|
- KIND_VERSION: v0.5.1
|
||||||
- MINIKUBE_WANTUPDATENOTIFICATION: false
|
|
||||||
- MINIKUBE_WANTREPORTERRORPROMPT: false
|
|
||||||
- CHANGE_MINIKUBE_NONE_USER: true
|
|
||||||
- MINIKUBE_HOME: /home/circleci
|
|
||||||
|
|
||||||
setupKubernetes: &setupKubernetes
|
setupKubernetes: &setupKubernetes
|
||||||
- run:
|
- run:
|
||||||
name: Setup Kubernetes
|
name: Setup Kubernetes
|
||||||
command: ~/go/src/${CIRCLE_PROJECT_USERNAME}/ci/build/kubernetes/minikube_setup.sh
|
command: ~/go/src/${CIRCLE_PROJECT_USERNAME}/ci/build/kubernetes/k8s_setup.sh
|
||||||
|
|
||||||
buildCoreDNSImage: &buildCoreDNSImage
|
|
||||||
- run:
|
|
||||||
name: Build latest CoreDNS Docker image
|
|
||||||
command: |
|
|
||||||
cd ~/go/src/${CIRCLE_PROJECT_USERNAME}/coredns
|
|
||||||
make coredns SYSTEM="GOOS=linux" && \
|
|
||||||
docker build -t coredns . && \
|
|
||||||
docker tag coredns localhost:5000/coredns && \
|
|
||||||
docker push localhost:5000/coredns
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
k8s-deployment-tests:
|
k8s-deployment-tests:
|
||||||
|
@ -60,7 +46,6 @@ jobs:
|
||||||
mkdir -p ~/go/src/${CIRCLE_PROJECT_USERNAME}/coredns
|
mkdir -p ~/go/src/${CIRCLE_PROJECT_USERNAME}/coredns
|
||||||
git clone https://github.com/${CIRCLE_PROJECT_USERNAME}/coredns ~/go/src/${CIRCLE_PROJECT_USERNAME}/coredns
|
git clone https://github.com/${CIRCLE_PROJECT_USERNAME}/coredns ~/go/src/${CIRCLE_PROJECT_USERNAME}/coredns
|
||||||
- <<: *setupKubernetes
|
- <<: *setupKubernetes
|
||||||
- <<: *buildCoreDNSImage
|
|
||||||
- run:
|
- run:
|
||||||
name: Run Kubernetes deployment tests
|
name: Run Kubernetes deployment tests
|
||||||
command: |
|
command: |
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue