aboutsummaryrefslogtreecommitdiffstats
path: root/alpine.sh
blob: e31649a6cdf796642ca71e0008ac16b3e4b5b99d (plain) (blame)
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
#!/usr/bin/env sh

set -e
#set -x

NAME=$1
DIST=alpine
RELEASE=edge
ARCH=amd64
PACKAGES="pcre ca-certificates openssl-dev ncurses-dev zlib-dev \
	openssh bash curl zsh vim sudo erlang git build-base autoconf gawk \
	go glide"

for f in ci.d/*; do source "$f"; done

buildkite_stop $DIST
lxc_destroy
lxc_create $DIST $RELEASE $ARCH
lxc_wait_for_ip
apk_upgrade
apk_install $PACKAGES
buildkite_install $DIST $BUILDKITE_TOKEN
ssh_copy_host_key
ssh_copy_host_key buildkite-agent /home/buildkite-agent
lxc_restart