Skip to content

Commit

Permalink
Merge branch 'test-registry-2.8.1-from-image' into HEAD
Browse files Browse the repository at this point in the history
  • Loading branch information
mtrmac committed Jun 16, 2022
2 parents f2c1d77 + c5402bf commit 9cfd26a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ env:
UBUNTU_NAME: "ubuntu-2204"

# Google-cloud VM Images
IMAGE_SUFFIX: "c5878804328480768"
IMAGE_SUFFIX: "c6340043416535040"
FEDORA_CACHE_IMAGE_NAME: "fedora-${IMAGE_SUFFIX}"
PRIOR_FEDORA_CACHE_IMAGE_NAME: "prior-fedora-${IMAGE_SUFFIX}"
UBUNTU_CACHE_IMAGE_NAME: "ubuntu-${IMAGE_SUFFIX}"
Expand Down
10 changes: 7 additions & 3 deletions integration/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ storage:
enabled: true
http:
addr: %s
compatibility:
schema1:
enabled: true
%s`
var (
htpasswd string
Expand Down Expand Up @@ -84,12 +87,13 @@ http:
return nil, err
}

binary := binaryV2
var cmd *exec.Cmd
if schema1 {
binary = binaryV2Schema1
cmd = exec.Command(binaryV2Schema1, confPath)
} else {
cmd = exec.Command(binaryV2, "serve", confPath)
}

cmd := exec.Command(binary, confPath)
consumeAndLogOutputs(c, fmt.Sprintf("registry-%s", url), cmd)
if err := cmd.Start(); err != nil {
if os.IsNotExist(err) {
Expand Down

0 comments on commit 9cfd26a

Please sign in to comment.