forked from aws-samples/aws-deploy-spinnaker-halyard
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuildspec-infra.yaml
More file actions
20 lines (18 loc) · 793 Bytes
/
Copy pathbuildspec-infra.yaml
File metadata and controls
20 lines (18 loc) · 793 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
## Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
## SPDX-License-Identifier: MIT-0
version: 0.2
phases:
build:
commands:
- apk add --no-cache curl bash
- curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.11.0/bin/linux/amd64/kubectl
- chmod +x kubectl
- mv kubectl /usr/local/bin
- curl -LO https://amazon-eks.s3-us-west-2.amazonaws.com/1.10.3/2018-07-26/bin/linux/amd64/aws-iam-authenticator
- chmod +x aws-iam-authenticator
- mv aws-iam-authenticator /usr/local/bin/heptio-authenticator-aws
- ./scripts/create_eks_cluster.sh -k ${K8S_NAME} -s ${K8S_KEYPAIR} -b ${BUCKET_NAME}
artifacts:
files:
- resources/kubernetes/kubeconfig.yaml
- resources/kubernetes/kubeconfig-no-role.yaml