Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions hack/docker/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ source "$REPO_ROOT/hack/libbuild/common/public_image.sh"

APPSCODE_ENV=${APPSCODE_ENV:-dev}
IMG=stash
RESTIC_VER=${RESTIC_VER:-SOURCE}
RESTIC_BRANCH=${RESTIC_BRANCH:-stash-0.4.0}
RESTIC_VER=${RESTIC_VER:-0.7.3}
RESTIC_BRANCH=${RESTIC_BRANCH:-stash-0.4.1}

DIST=$REPO_ROOT/dist
mkdir -p $DIST
if [ -f "$DIST/.tag" ]; then
export $(cat $DIST/.tag | xargs)
export $(cat $DIST/.tag | xargs)
fi

clean() {
Expand All @@ -44,7 +44,7 @@ build_binary() {
echo "Build binary using golang docker image"
docker run --rm -ti \
-v `pwd`:/go/src/github.com/restic/restic \
-w /go/src/github.com/restic/restic golang:1.8.3-alpine go run build.go
-w /go/src/github.com/restic/restic golang:1.9.2-alpine go build ./cmd/restic
mv restic $DIST/restic-bin
rm -rf *
mv $DIST/restic-bin $DIST/restic/restic
Expand Down