This is an automated email from the ASF dual-hosted git repository.
nferraro pushed a commit to tag 0.0.1
in repository
https://gitbox.apache.org/repos/asf/camel-k.gitcommit 1c9bf2604908dd69833696505e43ab403b064267
Author: nferraro <
[hidden email]>
AuthorDate: Thu Sep 13 19:13:04 2018 +0200
Update release with git tag step
---
build/Makefile | 5 ++++-
build/git_tag.sh | 15 +++++++++++++++
deploy/operator-deployment.yaml | 2 +-
deploy/resources.go | 2 +-
runtime/jvm/pom.xml | 2 +-
runtime/pom.xml | 2 +-
version/version.go | 2 +-
7 files changed, 24 insertions(+), 6 deletions(-)
diff --git a/build/Makefile b/build/Makefile
index 28c52a3..fde80b2 100644
--- a/build/Makefile
+++ b/build/Makefile
@@ -12,7 +12,7 @@ build-embed-resources:
build-runtime:
mvn clean install -f ./runtime/pom.xml
-release: prepare-release build images-build images-push test-integration cross-compile
+release: prepare-release build images-build images-push test-integration cross-compile git-tag
prepare-release:
./build/prepare_release.sh
@@ -20,6 +20,9 @@ prepare-release:
cross-compile:
./build/cross_compile.sh
+git-tag:
+ ./build/git_tag.sh
+
dep:
dep ensure -v
diff --git a/build/git_tag.sh b/build/git_tag.sh
new file mode 100755
index 0000000..d1d3adb
--- /dev/null
+++ b/build/git_tag.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+set -e
+
+location=$(dirname $0)
+version=$($location/get_version.sh)
+
+git branch -D staging-$version || true
+git checkout -b staging-$version
+git add * || true
+git commit -m "Release $version"
+git tag --force $version staging-$version
+git push --force upstream $version
+
+echo "Tag $version pushed upstream"
diff --git a/deploy/operator-deployment.yaml b/deploy/operator-deployment.yaml
index 265b76d..df67a73 100644
--- a/deploy/operator-deployment.yaml
+++ b/deploy/operator-deployment.yaml
@@ -17,7 +17,7 @@ spec:
serviceAccountName: camel-k-operator
containers:
- name: camel-k-operator
- image: docker.io/apache/camel-k:0.0.1-SNAPSHOT
+ image: docker.io/apache/camel-k:0.0.1
ports:
- containerPort: 60000
name: metrics
diff --git a/deploy/resources.go b/deploy/resources.go
index c0b8bbf..725558c 100644
--- a/deploy/resources.go
+++ b/deploy/resources.go
@@ -113,7 +113,7 @@ spec:
serviceAccountName: camel-k-operator
containers:
- name: camel-k-operator
- image: docker.io/apache/camel-k:0.0.1-SNAPSHOT
+ image: docker.io/apache/camel-k:0.0.1
ports:
- containerPort: 60000
name: metrics
diff --git a/runtime/jvm/pom.xml b/runtime/jvm/pom.xml
index 1aeb457..93347db 100644
--- a/runtime/jvm/pom.xml
+++ b/runtime/jvm/pom.xml
@@ -5,7 +5,7 @@
<parent>
<groupId>org.apache.camel.k</groupId>
<artifactId>camel-k-runtime-parent</artifactId>
- <version>0.0.1-SNAPSHOT</version>
+ <version>0.0.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>
diff --git a/runtime/pom.xml b/runtime/pom.xml
index fb7cd42..3f17431 100644
--- a/runtime/pom.xml
+++ b/runtime/pom.xml
@@ -6,7 +6,7 @@
<groupId>org.apache.camel.k</groupId>
<artifactId>camel-k-runtime-parent</artifactId>
- <version>0.0.1-SNAPSHOT</version>
+ <version>0.0.1</version>
<packaging>pom</packaging>
<properties>
diff --git a/version/version.go b/version/version.go
index f656e8a..a1df73c 100644
--- a/version/version.go
+++ b/version/version.go
@@ -20,5 +20,5 @@ package version
var (
// Global Camel K Version
- Version = "0.0.1-SNAPSHOT"
+ Version = "0.0.1"
)