diff --git a/.travis.yml b/.travis.yml index d267f55..3c4ebc7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -37,6 +37,11 @@ deploy: skip_cleanup: true on: tags: true + - provider: script + script: travis/docker-push.sh latest-release + skip_cleanup: true + on: + tags: true - provider: script script: travis/docs.sh latest skip_cleanup: true diff --git a/selenoid/docker.go b/selenoid/docker.go index 31fe02c..ca8ba7c 100644 --- a/selenoid/docker.go +++ b/selenoid/docker.go @@ -22,6 +22,8 @@ import ( "strconv" "strings" "time" + "os" + . "vbom.ml/util/sortorder" ) @@ -395,9 +397,8 @@ func (c *DockerConfigurator) Start() error { if image == nil { return errors.New("Selenoid image is not downloaded: this is probably a bug") } - env := []string{ - fmt.Sprintf("TZ=%s", time.Local), - } + env := os.Environ() + env = append(env, fmt.Sprintf("TZ=%s", time.Local)) portString := strconv.Itoa(selenoidContainerPort) port, err := nat.NewPort("tcp", portString) if err != nil { @@ -430,6 +431,9 @@ func (c *DockerConfigurator) Start() error { &container.HostConfig{ Binds: volumes, PortBindings: portBindings, + RestartPolicy: container.RestartPolicy{ + Name: "always", + }, }, &network.NetworkingConfig{}, selenoidContainerName) if err != nil {