Skip to content

Commit 026c705

Browse files
committed
simple release mechanics
1 parent 81c689b commit 026c705

File tree

4 files changed

+415
-2
lines changed

4 files changed

+415
-2
lines changed

.github/workflows/release.yaml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Main
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*.*.*"
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
- name: Release
15+
uses: softprops/action-gh-release@v1
16+
with:
17+
files: |
18+
config/rendered/release.yaml

Makefile

+5
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,11 @@ install: manifests kustomize ## Install CRDs into the K8s cluster specified in ~
9191
uninstall: manifests kustomize ## Uninstall CRDs from the K8s cluster specified in ~/.kube/config. Call with ignore-not-found=true to ignore resource not found errors during deletion.
9292
$(KUSTOMIZE) build config/crd | kubectl delete --ignore-not-found=$(ignore-not-found) -f -
9393

94+
.PHONY: release-manifests
95+
release-manifests: manifests kustomize
96+
cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG}
97+
$(KUSTOMIZE) build config/default > config/rendered/release.yaml
98+
9499
.PHONY: deploy
95100
deploy: manifests kustomize ## Deploy controller to the K8s cluster specified in ~/.kube/config.
96101
cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG}

config/manager/kustomization.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
1212
kind: Kustomization
1313
images:
1414
- name: controller
15-
newName: tibbar/of-operator
16-
newTag: v0.0.3
15+
newName: controller
16+
newTag: latest

0 commit comments

Comments
 (0)