Skip to content
This repository has been archived by the owner on Sep 5, 2019. It is now read-only.

Commit

Permalink
Publish nightly knative/build releases to knative-nightly
Browse files Browse the repository at this point in the history
Part of knative/serving#2555.

Bonus: updates `test-infra` to include the latest fixes and features, while also updating the Gopkg files so the cleanup workaround in `update-deps.sh` is not necessary anymore.
  • Loading branch information
adrcunha committed Nov 27, 2018
1 parent a39b1ee commit b376178
Show file tree
Hide file tree
Showing 11 changed files with 346 additions and 88 deletions.
4 changes: 2 additions & 2 deletions .ko.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
baseImageOverrides:
github.com/knative/build/cmd/creds-init: gcr.io/knative-releases/github.com/knative/build/build-base:latest
github.com/knative/build/cmd/git-init: gcr.io/knative-releases/github.com/knative/build/build-base:latest
github.com/knative/build/cmd/creds-init: gcr.io/knative-nightly/github.com/knative/build/build-base:latest
github.com/knative/build/cmd/git-init: gcr.io/knative-nightly/github.com/knative/build/build-base:latest
10 changes: 5 additions & 5 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ required = [
"k8s.io/code-generator/cmd/lister-gen",
"k8s.io/code-generator/cmd/informer-gen",
"github.com/knative/caching/pkg/apis/caching",
"github.com/knative/test-infra",
"github.com/knative/test-infra/scripts",
]

[[override]]
Expand Down Expand Up @@ -66,5 +66,4 @@ required = [

[[prune.project]]
name = "github.com/knative/test-infra"
unused-packages = false
non-go = false
4 changes: 2 additions & 2 deletions hack/release.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ added.*
* `--publish`, `--nopublish` Whether the generated images should be published
to a GCR, and the generated manifests written to a GCS bucket or not. If yes,
the destination GCR is defined by the environment variable
`$BUILD_RELEASE_GCR` (defaults to `gcr.io/knative-releases`) and the
`$BUILD_RELEASE_GCR` (defaults to `gcr.io/knative-nightly`) and the
destination GCS bucket is defined by the environment variable
`$BUILD_RELEASE_GCS` (defaults to `knative-releases/build`). If no, the
`$BUILD_RELEASE_GCS` (defaults to `knative-nightly/build`). If no, the
images will be pushed to the `ko.local` registry, and the manifests written
to the local disk only (in the repository root directory).

Expand Down
4 changes: 2 additions & 2 deletions hack/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
source $(dirname $0)/../vendor/github.com/knative/test-infra/scripts/release.sh

# Set default GCS/GCR
: ${BUILD_RELEASE_GCS:="knative-releases/build"}
: ${BUILD_RELEASE_GCR:="gcr.io/knative-releases"}
: ${BUILD_RELEASE_GCS:="knative-nightly/build"}
: ${BUILD_RELEASE_GCR:="gcr.io/knative-nightly"}
readonly BUILD_RELEASE_GCS
readonly BUILD_RELEASE_GCR

Expand Down
3 changes: 0 additions & 3 deletions hack/update-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,4 @@ cd ${REPO_ROOT_DIR}
# Ensure we have everything we need under vendor/
dep ensure

# Keep the only dir in knative/test-infra we're interested in
find vendor/github.com/knative/test-infra -mindepth 1 -maxdepth 1 ! -name scripts -exec rm -fr {} \;

update_licenses third_party/VENDOR-LICENSE "./cmd/*"
202 changes: 202 additions & 0 deletions vendor/github.com/knative/test-infra/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b376178

Please sign in to comment.