Skip to content

Commit

Permalink
update release workflow as per new builder image
Browse files Browse the repository at this point in the history
Signed-off-by: kranurag7 <anurag.kumar@syself.com>
  • Loading branch information
kranurag7 committed Feb 27, 2024
1 parent 85e5d56 commit 937af6b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,12 @@ jobs:
release:
name: Create draft release
runs-on: ubuntu-latest
permissions:
packages: read
contents: write
defaults:
run:
shell: bash
needs:
- manager-image
steps:
Expand Down
10 changes: 8 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,16 @@ CTLPTL_VERSION := 0.8.25
############
# Binaries #
############
# need in CI for releasing
CONTROLLER_GEN := $(abspath $(TOOLS_BIN_DIR)/controller-gen)
$(CONTROLLER_GEN): # Build controller-gen from tools folder.
go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.12.0

# need this in CI for releasing
KUSTOMIZE := $(abspath $(TOOLS_BIN_DIR)/kustomize)
kustomize: get-dependencies
kustomize: $(KUSTOMIZE) ## Build a local copy of kustomize
$(KUSTOMIZE): # Build kustomize from tools folder.
go install sigs.k8s.io/kustomize/kustomize/v4@v4.5.7

TILT := $(abspath $(TOOLS_BIN_DIR)/tilt)
tilt: $(TILT) ## Build a local copy of tilt
Expand Down Expand Up @@ -226,7 +232,7 @@ test-release:
$(MAKE) release-manifests

.PHONY: release-manifests
release-manifests: get-dependencies generate-manifests generate-go-deepcopy $(KUSTOMIZE) $(RELEASE_DIR) ## Builds the manifests to publish with a release
release-manifests: generate-manifests generate-go-deepcopy $(KUSTOMIZE) $(RELEASE_DIR) ## Builds the manifests to publish with a release
$(KUSTOMIZE) build config/default > $(RELEASE_DIR)/cso-infrastructure-components.yaml
## Build cso-components (aggregate of all of the above).
cp metadata.yaml $(RELEASE_DIR)/metadata.yaml
Expand Down

0 comments on commit 937af6b

Please sign in to comment.