Browse Source

auto push to latest on commit

AjayTripathy 7 years ago
parent
commit
a06a75ec83
1 changed files with 12 additions and 0 deletions
  1. 12 0
      .circleci/config.yml

+ 12 - 0
.circleci/config.yml

@@ -9,3 +9,15 @@ jobs:
           docker login -u $DOCKER_USER -p $DOCKER_PASS
           docker build -t ajaytripathy/kubecost-cost-model:$TAG .
           docker push ajaytripathy/kubecost-cost-model:$TAG
+  deploy:
+    machine: true
+    filters:
+      branches:
+      only:
+        - master
+    steps:
+      - checkout
+      - run: |
+          docker login -u $DOCKER_USER -p $DOCKER_PASS
+          docker build -t ajaytripathy/kubecost-cost-model:latest .
+          docker push ajaytripathy/kubecost-cost-model:latest