mirror of
https://github.com/openshift/image-registry.git
synced 2026-02-05 09:45:55 +01:00
use versioned origin image for integration tests
This commit is contained in:
@@ -1,4 +1,17 @@
|
||||
package testframework
|
||||
|
||||
// originImageRef is the Docker image name of the OpenShift Origin container.
|
||||
const originImageRef = "docker.io/openshift/origin:latest"
|
||||
import (
|
||||
"os"
|
||||
)
|
||||
|
||||
var (
|
||||
// originImageRef is the Docker image name of the OpenShift Origin container.
|
||||
originImageRef = "docker.io/openshift/origin:latest"
|
||||
)
|
||||
|
||||
func init() {
|
||||
version := os.Getenv("ORIGIN_VERSION")
|
||||
if len(version) != 0 {
|
||||
originImageRef = "docker.io/openshift/origin:" + version
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user