@@ -256,24 +256,32 @@ OPM = $(shell which opm)
256
256
endif
257
257
endif
258
258
259
+
260
+ update-catalog-template :
261
+ yq -e ' .Stable.Bundles += {"Image": "$(BUNDLE_IMG)" }' -i ./catalog-template.yaml
262
+ git commit -m" Bump catalog material" catalog-template.yaml
263
+ git push origin HEAD:main
264
+
259
265
# The image tag given to the resulting catalog image (e.g. make catalog-build CATALOG_IMG=example.com/operator-catalog:v0.2.0).
260
266
CATALOG_IMG ?= $(IMAGE_TAG_BASE ) -catalog:v$(VERSION )
267
+ CATALOG_VERSIONLESS = ghcr.io/davidkarlsen/flyway-operator-catalog:alpha
261
268
262
269
# Build a catalog image by adding bundle images to an empty catalog using the operator package manager tool, 'opm'.
263
270
# This recipe invokes 'opm' in 'semver' bundle add mode. For more information on add modes, see:
264
271
# https://github.com/operator-framework/community-operators/blob/7f1438c/docs/packaging-operator.md#updating-your-existing-operator
265
272
.PHONY : catalog-build
266
273
catalog-build : opm
267
- yq -e ' .Stable.Bundles += {"Image": "$(BUNDLE_IMG)" }' -i ./catalog-template.yaml
268
- git commit -m" Bump catalog material" catalog-template.yaml
269
- git push origin HEAD:main
270
274
rm -rf catalog
271
275
mkdir catalog
272
- opm alpha render-template semver -o yaml < catalog-template.yaml > catalog/catalog.yaml
273
- opm validate catalog
276
+ $( OPM ) alpha render-template semver -o yaml < catalog-template.yaml > catalog/catalog.yaml
277
+ $( OPM ) validate catalog
274
278
docker build --platform=linux/amd64 -f Dockerfile.catalog -t $(CATALOG_IMG ) .
275
279
276
280
# Push the catalog image.
277
281
.PHONY : catalog-push
278
282
catalog-push : # # Push a catalog image.
279
283
$(MAKE ) docker-push IMG=$(CATALOG_IMG )
284
+
285
+ catalog-retag :
286
+ docker tag $(CATALOG_IMG ) $(CATALOG_VERSIONLESS )
287
+ docker push $(CATALOG_VERSIONLESS )
0 commit comments