Skip to content
This repository was archived by the owner on Oct 3, 2019. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ include ./make/docker.mk
## Build the operator
build: ./out/operator

.PHONY: ci-build
ci-build: build
$(eval package_yaml := ./manifests/devconsole/devconsole.package.yaml)
$(eval version := $(shell cat $(package_yaml) | grep "currentCSV"| cut -d "." -f2- | cut -d "v" -f2 | tr -d '[:space:]'))
$(Q)sed -e "s,REPLACE_IMAGE,registry.svc.ci.openshift.org/${OPENSHIFT_BUILD_NAMESPACE}/stable:devconsole-operator," \
-i manifests/devconsole/${version}/devconsole-operator.v${version}.clusterserviceversion.yaml
$(Q)tar -zcvf ./out/csv.tar.gz manifests/devconsole/${version}/devconsole-operator.v${version}.clusterserviceversion.yaml

.PHONY: clean
clean:
$(Q)-rm -rf ${V_FLAG} ./out
Expand Down
2 changes: 1 addition & 1 deletion openshift-ci/Dockerfile.registry.build
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ ARG version=0.1.0

COPY manifests manifests
COPY deploy/crds/*.yaml manifests/devconsole/${version}/
ADD csv.tar.gz .

RUN sed -e "s,REPLACE_IMAGE,registry.svc.ci.openshift.org/${OPENSHIFT_BUILD_NAMESPACE}/stable:devconsole-operator," -i manifests/devconsole/${version}/devconsole-operator.v${version}.clusterserviceversion.yaml
RUN initializer

USER 1001
Expand Down