Skip to content

Commit

Permalink
Merge pull request #1679 from mtrmac/test-registry-2.8.1-from-image
Browse files Browse the repository at this point in the history
Use an updated CI image with OCI-capable registry
  • Loading branch information
rhatdan authored Jun 17, 2022
2 parents e7363a2 + 38f4b9d commit 1465088
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 1465088

Please sign in to comment.