Skip to content

Commit

Permalink
Merge pull request #29 from perses/nexucis/setup-ci
Browse files Browse the repository at this point in the history
build and release catalog and bundle in ci/cd
  • Loading branch information
jgbernalp authored Dec 3, 2024
2 parents bf1f3b5 + f14158d commit 69db1ce
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 2,751 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,19 @@ jobs:
distribution: goreleaser
install-only: true
- name: Build Go binaries and docker images
run: make cross-build
run: |
make cross-build
make bundle-build
- name: Publish Release and binaries
## This step will only run when a new tag is pushed.
## It will build the Go binaries and the docker images and then publish:
## - the GitHub release with the archive built
## - docker images on the different docker registry selected
if: ${{ github.event_name == 'push' && startsWith(github.ref_name, 'v') }}
run: make cross-release
run: |
make cross-release
make bundle-push
make catalog-build
make catalog-push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,4 @@ Dockerfile.cross
/.github/perses-ci/

bundle_tmp*
/bundle/manifests/
5 changes: 1 addition & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ bundle: manifests kustomize operator-sdk ## Generate bundle manifests and metada
$(OPERATOR_SDK) bundle validate ./bundle

.PHONY: bundle-build
bundle-build: ## Build the bundle image.
bundle-build: generate bundle ## Build the bundle image.
$(CONTAINER_RUNTIME) build -f bundle.Dockerfile -t $(BUNDLE_IMG) .

.PHONY: bundle-push
Expand Down Expand Up @@ -330,6 +330,3 @@ cross-build: generate-goreleaser manifests generate fmt vet ## Cross build binar
.PHONY: cross-release
cross-release: generate-goreleaser manifests generate fmt vet
goreleaser release --clean

.PHONY: release
release: generate bundle bundle-build bundle-push catalog-build catalog-push

This file was deleted.

This file was deleted.

Loading

0 comments on commit 69db1ce

Please sign in to comment.