Skip to content

Commit

Permalink
Add support for using nightly release
Browse files Browse the repository at this point in the history
This adds support using nightly release manifests for building
operator. This is based on `COMPONENT` environment variable.
  • Loading branch information
khrm committed May 20, 2024
1 parent 05cbb26 commit 9754067
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ MODULE = $(shell env GO111MODULE=on $(GO) list -m)
DATE ?= $(shell date +%FT%T%z)
KO_DATA_PATH = $(shell pwd)/cmd/$(TARGET)/operator/kodata
TARGET = kubernetes
COMPONENT ?= components.yaml
FORCE_FETCH_RELEASE = false
CR = config/basic
PLATFORM := $(if $(PLATFORM),--platform $(PLATFORM))
Expand Down Expand Up @@ -96,15 +97,15 @@ bin/%: cmd/% FORCE

.PHONY: compoments/bump
components/bump: $(OPERATORTOOL)
@go run ./cmd/tool bump components.yaml
@go run ./cmd/tool bump ${COMPONENT}

.PHONY: components/bump-bugfix
components/bump-bugfix: $(OPERATORTOOL)
@go run ./cmd/tool bump --bugfix components.yaml
@go run ./cmd/tool bump --bugfix ${COMPONENT}

.PHONY: get-releases
get-releases: |
$Q ./hack/fetch-releases.sh $(TARGET) components.yaml $(FORCE_FETCH_RELEASE) || exit ;
$Q ./hack/fetch-releases.sh $(TARGET) ${COMPONENT} $(FORCE_FETCH_RELEASE) || exit ;

.PHONY: apply
apply: | $(KO) $(KUSTOMIZE) get-releases ; $(info $(M) ko apply on $(TARGET)) @ ## Apply config to the current cluster
Expand Down
4 changes: 2 additions & 2 deletions components.nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ chains:
version: nightly
results:
github: tektoncd/results
version: v0.5.0
version: nightly
hub:
github: tektoncd/hub
version: v1.10.0
version: v1.17.0
pipelines-as-code:
github: openshift-pipelines/pipelines-as-code
version: nightly

0 comments on commit 9754067

Please sign in to comment.