Skip to content

Commit

Permalink
[gitlab] load bundle image (#1104)
Browse files Browse the repository at this point in the history
  • Loading branch information
celenechang authored and khewonc committed Feb 28, 2024
1 parent 15598ff commit 9037e74
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Expand Up @@ -131,7 +131,7 @@ build_bundle_image:
TARGET_IMAGE: $BUILD_DOCKER_REGISTRY/$PROJECTNAME:v${CI_PIPELINE_ID}-${CI_COMMIT_SHORT_SHA}-bundle
RELEASE_IMAGE: $BUILD_DOCKER_REGISTRY/$PROJECTNAME:$CI_COMMIT_TAG-bundle
script:
- BUNDLE_IMG=$TARGET_IMAGE make bundle-build
- BUNDLE_IMG=$TARGET_IMAGE make bundle-build-load
- if [ -n "$CI_COMMIT_TAG" ]; then docker buildx imagetools create $TARGET_IMAGE --tag $RELEASE_IMAGE; fi


Expand Down
6 changes: 3 additions & 3 deletions Makefile
Expand Up @@ -224,9 +224,9 @@ bundle: bin/$(PLATFORM)/operator-sdk bin/$(PLATFORM)/yq $(KUSTOMIZE) manifests #
bundle-redhat: bin/$(PLATFORM)/operator-manifest-tools
hack/redhat-bundle.sh

.PHONY: bundle-build
bundle-build: ## Build the bundle image.
docker buildx build -f bundle.Dockerfile -t $(BUNDLE_IMG) .
.PHONY: bundle-build-load
bundle-build: ## Build and load the bundle image.
docker buildx build --load -f bundle.Dockerfile -t $(BUNDLE_IMG) .

.PHONY: bundle-push
bundle-push:
Expand Down

0 comments on commit 9037e74

Please sign in to comment.