Skip to content

Commit

Permalink
[FEAT] Add new files and changes for tsuru deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaveira3 committed Mar 19, 2019
1 parent 0873f21 commit 0666fa1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .tsuruignore
@@ -0,0 +1 @@
deployments/
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -55,7 +55,7 @@ lint:

## Builds Go project to the executable file huskyci
build:
$(GO) build -ldflags $(LDFLAGS) -o "$(HUSKYCIBIN)"
cd api && GOOS=linux GOARCH=amd64 $(GO) build -ldflags $(LDFLAGS) -o "$(HUSKYCIBIN)"

## Builds client to the executable file huskyci-client
build-client:
Expand Down
1 change: 1 addition & 0 deletions Procfile
@@ -0,0 +1 @@
web: ./api/huskyci
2 changes: 1 addition & 1 deletion api/dockers/api.go
Expand Up @@ -45,7 +45,7 @@ type CreateContainerPayload struct {
// NewDocker returns a new docker.
func NewDocker() (*Docker, error) {
configAPI := context.GetAPIConfig()
dockerHost := fmt.Sprintf("http://%s", configAPI.DockerHostsConfig.Host)
dockerHost := fmt.Sprintf("https://%s", configAPI.DockerHostsConfig.Host)

err := os.Setenv("DOCKER_HOST", dockerHost)
if err != nil {
Expand Down

0 comments on commit 0666fa1

Please sign in to comment.