ci: add preview cluster creation to Circle CI
@@ -1368,7 +1368,9 @@ jobs:
aux-agent-instance-type:
type: string
default: "m5.large"
-
+ cluster-id:
+ type: string
+ default: determined-${CIRCLE_BRANCH////--}
max-dynamic-agents:
type: integer
default: 1
@@ -1389,7 +1391,7 @@ jobs:
determined: true
executor: determinedai/cimg-base:stable
- deploy-aws-cluster:
- cluster-id: determined-${CIRCLE_BRANCH////--}
+ cluster-id: <<parameters.cluster-id>>
det-version: ${CIRCLE_SHA1}
compute-agent-instance-type: <<parameters.compute-agent-instance-type>>
aux-agent-instance-type: <<parameters.aux-agent-instance-type>>
@@ -1807,6 +1809,20 @@ workflows:
- package-and-push-system-dev
max-dynamic-agents: 2
+ - deploy:
+ name: deploy-preview-cluster
+ enable-cors: true
+ context: aws
+ filters:
+ branches:
+ only:
+ - master
+ requires:
+ - package-and-push-system-dev
+ max-dynamic-agents: 1
+ cluster-id: determined-preview
+ compute-agent-instance-type: t2.medium
+
- deploy:
name: deploy-release-party
context: aws
