Sfoglia il codice sorgente

auto push to latest on commit

AjayTripathy 7 anni fa
parent
commit
a06a75ec83
1 ha cambiato i file con 12 aggiunte e 0 eliminazioni
  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 login -u $DOCKER_USER -p $DOCKER_PASS
           docker build -t ajaytripathy/kubecost-cost-model:$TAG .
           docker build -t ajaytripathy/kubecost-cost-model:$TAG .
           docker push 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