Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

Commit

Permalink
push binaries to gh-releases
Browse files Browse the repository at this point in the history
  • Loading branch information
lanwen committed May 4, 2017
1 parent a6d202e commit 8e4f410
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
14 changes: 12 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ services:
- docker

script:
- go generate ./web ./...
- ./travis/coverage.sh
- GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build
- gox -os "linux darwin windows" -arch "amd64" -output "dist/{{.Dir}}_{{.OS}}_{{.Arch}}"

before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash
Expand All @@ -20,16 +21,25 @@ before_install:
- export TRAVIS_BUILD_DIR=$HOME/gopath/src/github.com/${TRAVIS_REPO_SLUG}
- cd $HOME/gopath/src/github.com/${TRAVIS_REPO_SLUG}
- eval "$(curl -sL https://raw.githubusercontent.com/travis-ci/gimme/master/gimme | GIMME_GO_VERSION=1.8 bash)"

install:
- go get -u github.com/jteeuwen/go-bindata/...
- go get -u github.com/elazarl/go-bindata-assetfs/...
- go get -u github.com/aandryashin/matchers
- go get -u github.com/mitchellh/gox # cross compile
- npm install cross-env
- go generate ./web ./...

after_success:
- bash <(curl -s https://codecov.io/bash)

deploy:
- provider: releases
api-key: $GITHUB_TOKEN
file_glob: true
file: dist/*
skip_cleanup: true
on:
tags: true
- provider: script
script: travis/docker-push.sh latest
skip_cleanup: true
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM scratch
MAINTAINER Kirill Merkushev <[email protected]>

COPY selenoid-ui /
COPY dist/selenoid-ui_linux_amd64 /selenoid-ui

EXPOSE 8080
ENTRYPOINT ["/selenoid-ui"]

0 comments on commit 8e4f410

Please sign in to comment.