|
@@ -11,13 +11,22 @@ jobs:
|
|
|
docker push ajaytripathy/kubecost-cost-model:$TAG
|
|
docker push ajaytripathy/kubecost-cost-model:$TAG
|
|
|
deploy:
|
|
deploy:
|
|
|
machine: true
|
|
machine: true
|
|
|
- filters:
|
|
|
|
|
- branches:
|
|
|
|
|
- only:
|
|
|
|
|
- - master
|
|
|
|
|
steps:
|
|
steps:
|
|
|
- checkout
|
|
- checkout
|
|
|
- run: |
|
|
- run: |
|
|
|
docker login -u $DOCKER_USER -p $DOCKER_PASS
|
|
docker login -u $DOCKER_USER -p $DOCKER_PASS
|
|
|
docker build -t ajaytripathy/kubecost-cost-model:latest .
|
|
docker build -t ajaytripathy/kubecost-cost-model:latest .
|
|
|
docker push ajaytripathy/kubecost-cost-model:latest
|
|
docker push ajaytripathy/kubecost-cost-model:latest
|
|
|
|
|
+
|
|
|
|
|
+workflows:
|
|
|
|
|
+ version: 2
|
|
|
|
|
+ build-and-deploy:
|
|
|
|
|
+ jobs:
|
|
|
|
|
+ - build
|
|
|
|
|
+ - deploy:
|
|
|
|
|
+ requires:
|
|
|
|
|
+ - build
|
|
|
|
|
+ filters:
|
|
|
|
|
+ branches:
|
|
|
|
|
+ only:
|
|
|
|
|
+ - master
|