Skip to content

Commit ac599d6

Browse files
committed
chore(travis): add DEV_REGISTRY
1 parent 3da21b3 commit ac599d6

5 files changed

Lines changed: 24 additions & 24 deletions

File tree

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ language: go
33
services:
44
- docker
55
script:
6-
- make bootstrap
7-
- make test
8-
- make test-cover
6+
- DEV_REGISTRY="docker.io" make bootstrap
7+
- DEV_REGISTRY="docker.io" make test
8+
- DEV_REGISTRY="docker.io" make test-cover
99
notifications:
1010
slack:
1111
rooms:

pkg/gitreceive/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ type Config struct {
3535
ObjectStorageWaitDurationMSec int `envconfig:"OBJECT_STORAGE_WAIT_DURATION" default:"300000"` // 5 minutes
3636
SessionIdleIntervalMsec int `envconfig:"SESSION_IDLE_INTERVAL" default:"10000"` // 10 seconds
3737
SlugBuilderImagePullPolicy string `envconfig:"SLUGBUILDER_IMAGE_PULL_POLICY" default:"Always"`
38-
ImagebuilderImagePullPolicy string `envconfig:"IMAGEBUILDER_IMAGE_PULL_POLICY" default:"Always"`
38+
ImagebuilderImagePullPolicy string `envconfig:"IMAGEBUILDER_IMAGE_PULL_POLICY" default:"Always"`
3939
StorageType string `envconfig:"BUILDER_STORAGE" default:"minio"`
4040
BuilderPodNodeSelector string `envconfig:"BUILDER_POD_NODE_SELECTOR" default:""`
4141
}

pkg/gitreceive/k8s_util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717
)
1818

1919
const (
20-
slugBuilderName = "drycc-slugbuilder"
20+
slugBuilderName = "drycc-slugbuilder"
2121
imagebuilderName = "drycc-imagebuilder"
2222

2323
tarPath = "TAR_PATH"

pkg/gitreceive/k8s_util_test.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,17 +59,17 @@ type slugBuildCase struct {
5959
}
6060

6161
type imageBuildCase struct {
62-
debug bool
63-
name string
64-
namespace string
65-
env map[string]interface{}
66-
tarKey string
67-
gitShortHash string
68-
imgName string
62+
debug bool
63+
name string
64+
namespace string
65+
env map[string]interface{}
66+
tarKey string
67+
gitShortHash string
68+
imgName string
6969
imagebuilderImage string
7070
imagebuilderImagePullPolicy corev1.PullPolicy
71-
storageType string
72-
builderPodNodeSelector map[string]string
71+
storageType string
72+
builderPodNodeSelector map[string]string
7373
}
7474

7575
func TestBuildPod(t *testing.T) {

pkg/sshd/config.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ import (
66

77
// Config represents the required SSH server configuration.
88
type Config struct {
9-
ControllerHost string `envconfig:"DRYCC_CONTROLLER_SERVICE_HOST" required:"true"`
10-
ControllerPort string `envconfig:"DRYCC_CONTROLLER_SERVICE_PORT" required:"true"`
11-
SSHHostIP string `envconfig:"SSH_HOST_IP" default:"0.0.0.0" required:"true"`
12-
SSHHostPort int `envconfig:"SSH_HOST_PORT" default:"2223" required:"true"`
13-
HealthSrvPort int `envconfig:"HEALTH_SERVER_PORT" default:"8092"`
14-
HealthSrvTestStorageRegion string `envconfig:"STORAGE_REGION" default:"us-east-1"`
15-
CleanerPollSleepDurationSec int `envconfig:"CLEANER_POLL_SLEEP_DURATION_SEC" default:"5"`
16-
StorageType string `envconfig:"BUILDER_STORAGE" default:"minio"`
17-
SlugBuilderImagePullPolicy string `envconfig:"SLUGBUILDER_IMAGE_PULL_POLICY" default:"Always"`
9+
ControllerHost string `envconfig:"DRYCC_CONTROLLER_SERVICE_HOST" required:"true"`
10+
ControllerPort string `envconfig:"DRYCC_CONTROLLER_SERVICE_PORT" required:"true"`
11+
SSHHostIP string `envconfig:"SSH_HOST_IP" default:"0.0.0.0" required:"true"`
12+
SSHHostPort int `envconfig:"SSH_HOST_PORT" default:"2223" required:"true"`
13+
HealthSrvPort int `envconfig:"HEALTH_SERVER_PORT" default:"8092"`
14+
HealthSrvTestStorageRegion string `envconfig:"STORAGE_REGION" default:"us-east-1"`
15+
CleanerPollSleepDurationSec int `envconfig:"CLEANER_POLL_SLEEP_DURATION_SEC" default:"5"`
16+
StorageType string `envconfig:"BUILDER_STORAGE" default:"minio"`
17+
SlugBuilderImagePullPolicy string `envconfig:"SLUGBUILDER_IMAGE_PULL_POLICY" default:"Always"`
1818
ImagebuilderImagePullPolicy string `envconfig:"IMAGEBUILDER_IMAGE_PULL_POLICY" default:"Always"`
19-
LockTimeout int `envconfig:"GIT_LOCK_TIMEOUT" default:"10"`
19+
LockTimeout int `envconfig:"GIT_LOCK_TIMEOUT" default:"10"`
2020
}
2121

2222
// CleanerPollSleepDuration returns c.CleanerPollSleepDurationSec as a time.Duration.

0 commit comments

Comments
 (0)