From e4e2361a6ae039e2e9b5595bd2c0c689228cd211 Mon Sep 17 00:00:00 2001 From: Michael Nairn Date: Mon, 18 Feb 2019 12:53:40 +0000 Subject: [PATCH] Bump version 0.0.4. Fix version in operator.yaml (v0.0.4) Add release instructions to README. Update travis build --- Makefile | 2 +- README.md | 17 +++++++++++++++++ deploy/operator.yaml | 2 +- version/version.go | 2 +- 4 files changed, 20 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index dc9ee75..cf487d9 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ SHELL=/bin/bash REG=quay.io ORG=integreatly IMAGE=tutorial-web-app-operator -TAG=latest +TAG=0.0.4 KUBE_CMD=oc apply -f DEPLOY_DIR=deploy OUT_STATIC_DIR=tmp/_output diff --git a/README.md b/README.md index 48562a7..62bb615 100644 --- a/README.md +++ b/README.md @@ -35,3 +35,20 @@ make image/build REG=custom-registry.io ORG=myusername IMAGE=image-name TAG=dev ``` make test/unit ``` + +## Release + +Update operator version files: + +* Bump [operator version](version/version.go) +```Version = ""``` +* Bump [makefile TAG](Makefile) +```TAG=``` +* Bump [operator image version](deploy/operator.yaml) +```image: quay.io/integreatly/tutorial-web-app-operator:v``` + +Commit changes and open pull request. + +When the PR is accepted, create a new release tag: + +```git tag v && git push upstream v``` diff --git a/deploy/operator.yaml b/deploy/operator.yaml index 5794d8c..0e4dd76 100644 --- a/deploy/operator.yaml +++ b/deploy/operator.yaml @@ -15,7 +15,7 @@ spec: serviceAccountName: tutorial-web-app-operator containers: - name: tutorial-web-app-operator - image: quay.io/integreatly/tutorial-web-app-operator:master + image: quay.io/integreatly/tutorial-web-app-operator:v0.0.4 ports: - containerPort: 60000 name: metrics diff --git a/version/version.go b/version/version.go index e3e130b..2a179e8 100644 --- a/version/version.go +++ b/version/version.go @@ -1,5 +1,5 @@ package version var ( - Version = "0.0.1" + Version = "0.0.4" )