#!/bin/sh -x
rm -rf harbor
GOPATH="`pwd`/harbor"
export GOPATH
mkdir -p $GOPATH
go get -v -u -d github.com/vmware/harbor
tar cvf - --exclude .git harbor | xz -9 >harbor-`date '+%Y%m%d'`.tar.xz
rm -rf harbor
