clean circle ci config; update version of deploy-orb
version: 2.1
orbs:
hello-orb: kalmhq-ns1/hello-orb@dev:0.0.1
- deploy-orb: kalmhq-ns1/deploy-orb@dev:0.0.1
+ deploy-orb: kalmhq-ns1/deploy-orb@dev:0.0.2
jobs:
- test-ci-cd-job:
- docker:
- - image: tutum/curl:alpine
- environment:
- KALM_API_ADDRESS: https://dashboard.kapp.live
- steps:
- - run:
- name: call kalm webhook to trigger update of component
- command: curl -v -XPOST ${KALM_API_ADDRESS}/__kalm_webhook/deploy?deploy-key=${DEPLOY_KEY}\&app=kalm-system\&component=kalm\&image-tag=latest
test-dashboard:
docker:
- image: circleci/golang:1.13.11
@@ -148,21 +139,6 @@ jobs:
command: |
echo "$QUAYIO_PASS" | docker login -u "$QUAYIO_USERNAME" --password-stdin quay.io
docker push $IMAGE_NAME:latest
- # deploy-dashboard:
- # docker:
- # - image: circleci/golang:1.13.11
- # steps:
- # - checkout
- # - run:
- # name: deploy
- # working_directory: ./controller
- # command: |
- # curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.15.9/bin/linux/amd64/kubectl
- # chmod +x ./kubectl
- # sudo mv ./kubectl /usr/local/bin/kubectl
- # mkdir ${HOME}/.kube
- # echo "$KUBE_CONFIG" | base64 --decode > ${HOME}/.kube/config
- # kubectl delete pod -n kalm-system $(kubectl get pods -n kalm-system -l app=kalm -o jsonpath="{.items[].metadata.name}")
deploy-dashboard:
executor: deploy-orb/default
steps:
@@ -221,13 +197,6 @@ workflows:
KALM_APP: kalm-system
KALM_COMPONENT: kalm
KALM_COMPONENT_IMG_TAG: latest
- - test-ci-cd-job:
- context: deploy-demo-cluster
- filters:
- branches:
- only:
- - deploy-key
- - master
dashboard:
jobs:
- test-dashboard
