mirror of https://github.com/knative/pkg.git
Auto-update dependencies (#655)
Produced via: `dep ensure -update knative.dev/test-infra` /assign mattmoor
This commit is contained in:
parent
7db4b798fb
commit
ad15759ac9
|
@ -1245,14 +1245,14 @@
|
|||
|
||||
[[projects]]
|
||||
branch = "master"
|
||||
digest = "1:230d4d8a9aa64db75413202a9d1cde3b80bcc417b858093f0fd27c2017bb4955"
|
||||
digest = "1:e873112f19e9ce823bc01ca715de355bd5cf8e4d6045ed5f34b3eb0d6ec2c655"
|
||||
name = "knative.dev/test-infra"
|
||||
packages = [
|
||||
"scripts",
|
||||
"tools/dep-collector",
|
||||
]
|
||||
pruneopts = "UT"
|
||||
revision = "90a447afb0f4562ff89ac2975334aefcf864d21d"
|
||||
revision = "5449c8bad49d3528b5cb0b58a0cdce0f8a526f03"
|
||||
|
||||
[[projects]]
|
||||
digest = "1:8730e0150dfb2b7e173890c8b9868e7a273082ef8e39f4940e3506a481cf895c"
|
||||
|
|
|
@ -543,19 +543,24 @@ function get_canonical_path() {
|
|||
echo "$(cd ${path%/*} && echo $PWD/${path##*/})"
|
||||
}
|
||||
|
||||
# Returns the URL to the latest manifest for the given Knative project.
|
||||
# Parameters: $1 - repository name of the given project
|
||||
# $2 - name of the yaml file, without extension
|
||||
function get_latest_knative_yaml_source() {
|
||||
# Returns whether the current branch is a release branch.
|
||||
function is_release_branch() {
|
||||
local branch_name=""
|
||||
local repo_name="$1"
|
||||
local yaml_name="$2"
|
||||
# Get the branch name from Prow's env var, see https://github.com/kubernetes/test-infra/blob/master/prow/jobs.md.
|
||||
# Otherwise, try getting the current branch from git.
|
||||
(( IS_PROW )) && branch_name="${PULL_BASE_REF:-}"
|
||||
[[ -z "${branch_name}" ]] && branch_name="$(git rev-parse --abbrev-ref HEAD)"
|
||||
[[ ${branch_name} =~ ^release-[0-9\.]+$ ]]
|
||||
}
|
||||
|
||||
# Returns the URL to the latest manifest for the given Knative project.
|
||||
# Parameters: $1 - repository name of the given project
|
||||
# $2 - name of the yaml file, without extension
|
||||
function get_latest_knative_yaml_source() {
|
||||
local repo_name="$1"
|
||||
local yaml_name="$2"
|
||||
# If it's a release branch, the yaml source URL should point to a specific version.
|
||||
if [[ ${branch_name} =~ ^release-[0-9\.]+$ ]]; then
|
||||
if is_release_branch; then
|
||||
# Get the latest tag name for the current branch, which is likely formatted as v0.5.0
|
||||
local tag_name="$(git describe --tags --abbrev=0)"
|
||||
# The given repo might not have this tag, so we need to find its latest release manifest with the same major&minor version.
|
||||
|
|
|
@ -485,7 +485,9 @@ function main() {
|
|||
parse_flags $@
|
||||
# Log what will be done and where.
|
||||
banner "Release configuration"
|
||||
echo "- gcloud user: $(gcloud config get-value core/account)"
|
||||
if which gcloud &>/dev/null ; then
|
||||
echo "- gcloud user: $(gcloud config get-value core/account)"
|
||||
fi
|
||||
echo "- Go path: ${GOPATH}"
|
||||
echo "- Repository root: ${REPO_ROOT_DIR}"
|
||||
echo "- Destination GCR: ${KO_DOCKER_REPO}"
|
||||
|
|
Loading…
Reference in New Issue