-
Notifications
You must be signed in to change notification settings - Fork 0
/
wercker.yml
35 lines (29 loc) · 1.38 KB
/
wercker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
box: wercker/default
build:
steps:
- script:
name: config
code: |
export KUBERNETES_VERSION="0.21.3"
export KUBERNETES_MD5="6cf508d4f6010c55ad3d3a9abd688f64"
export KUBERNETES_SHA1="7e55f8b4d2aa6c919c90b9b7ff0a8363a4f7d125"
echo "Installing version $KUBERNETES_VERSION of kubernetes"
- script:
name: fetch kubernetes archive
code: |
curl -L https://github.com/GoogleCloudPlatform/kubernetes/releases/download/v${KUBERNETES_VERSION}/kubernetes.tar.gz > /tmp/kubernetes.tar.gz
- script:
name: validate kubernetes archive
code: |
cat /tmp/kubernetes.tar.gz | sha1sum | grep -q "$KUBERNETES_SHA1"
cat /tmp/kubernetes.tar.gz | md5sum | grep -q "$KUBERNETES_MD5"
- script:
name: extract kubernetes archive
code: |
mkdir /tmp/kubernetes/
tar xzvf /tmp/kubernetes.tar.gz -C /tmp/kubernetes/
- script:
name: prepare output
code: |
cp "$WERCKER_ROOT/LICENSE" "$WERCKER_ROOT/README.md" "$WERCKER_ROOT/run.sh" "$WERCKER_ROOT/wercker.yml" "$WERCKER_ROOT/wercker-step.yml" "$WERCKER_OUTPUT_DIR"
cp /tmp/kubernetes/kubernetes/platforms/linux/amd64/kubectl "$WERCKER_OUTPUT_DIR/kubectl"