Skip to content

Commit

Permalink
Merge pull request #768 from cheesesashimi/zzlotnik/fix-image-pull-tag
Browse files Browse the repository at this point in the history
layering_test: BASE_IMAGE_TAG is a better name
  • Loading branch information
cgwalters authored Apr 4, 2022
2 parents edcd4d6 + 21e6c8b commit 677cb9d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/layering/build_helper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"fmt"
"io"
"os"
"strings"
"sync"
"testing"
"time"
Expand All @@ -22,11 +21,9 @@ import (
"k8s.io/apimachinery/pkg/util/wait"
)

// Gets the RHCOS base image tag from the BRANCH environment variable or
// defaults to "latest"; e.g., registry.ci.openshift.org/rhcos-devel/rhel-coreos:<tag>
// Gets the RHCOS base image tag from the BASE_IMAGE_TAG environment variable.
func getBaseImageTag() string {
branch := getEnvVarOrDefault("BRANCH", "latest")
return strings.ReplaceAll(branch, "release-", "")
return getEnvVarOrDefault("BASE_IMAGE_TAG", "latest")
}

// Gets the value of an environment variable or defaults to the provided
Expand Down

0 comments on commit 677cb9d

Please sign in to comment.