update build

This commit is contained in:
Scott Miller 2015-09-24 16:01:50 -04:00
parent 78fdc56214
commit d373904d2d
2 changed files with 3 additions and 2 deletions

View File

@ -18,8 +18,8 @@ go:
script:
# TODO: Bring this back: - fgt golint
# - make test
- CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags "-X main.buildCommit `git describe --long --tags --dirty --always`" ./cmd/ssh-chat
- make test
- make build
- ssh-keygen -f ~/.ssh/id_rsa -t rsa -N ''
- cp ~/.ssh/id_rsa id_rsa
- docker build -t "$DOCKER_USER"/ssh-chat:latest .

View File

@ -1,3 +1,4 @@
#!/bin/bash -ex
CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags "-X main.buildCommit `git describe --long --tags --dirty --always`" ./cmd/ssh-chat
docker login -e="$DOCKER_EMAIL" -u="$DOCKER_USER" -p="$DOCKER_PASS"
docker push $DOCKER_USER/ssh-chat:latest