Skip to content

Commit cd06933

Browse files
authored
feat: add build installer at release (#165)
1 parent 6e7f900 commit cd06933

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,16 @@ jobs:
6868
repository: adyanth/cloudflare-operator
6969
readme-filepath: ./README.md
7070
short-description: "Cloudflare Operator Controller Manager"
71+
- name: Setup Go 1.24
72+
uses: actions/setup-go@v5
73+
if: github.event.ref_type == 'tag'
74+
with:
75+
go-version: 1.24
76+
- name: Build installer
77+
if: github.event.ref_type == 'tag'
78+
run: make build-installer
79+
- name: Publish installer
80+
if: github.event.ref_type == 'tag'
81+
run: gh release upload ${{ github.ref_name }} dist/*.yaml
82+
env:
83+
GH_TOKEN: ${{ github.token }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,4 @@ testbin/*
2626

2727
# used for development
2828
secrets
29+
dist

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,8 @@ docker-buildx: ## Build and push docker image for the manager for cross-platform
173173
build-installer: manifests generate kustomize ## Generate a consolidated YAML with CRDs and deployment.
174174
mkdir -p dist
175175
cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG}
176-
$(KUSTOMIZE) build config/default > dist/install.yaml
176+
$(KUSTOMIZE) build config/default > dist/cloudflare-operator.yaml
177+
$(KUSTOMIZE) build config/crd > dist/cloudflare-operator.crds.yaml
177178

178179
##@ Deployment
179180

0 commit comments

Comments
 (0)