Skip to content

Commit

Permalink
chore(release): package examples to publish them during release
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaferraro authored and lburgazzoli committed Dec 14, 2018
1 parent 8adbd57 commit 57dd09f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
7 changes: 5 additions & 2 deletions build/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ build-compile-integration-tests:
build-runtime:
./mvnw clean install -f ./runtime/pom.xml

release: clean prepare-release build images-build images-push cross-compile git-tag
release: clean prepare-release build images-build images-push cross-compile package-examples git-tag

prepare-release:
./build/prepare_release.sh
Expand All @@ -30,6 +30,9 @@ increment-snapshot:
cross-compile:
./build/cross_compile.sh

package-examples:
./build/package_examples.sh

git-tag:
./build/git_tag.sh

Expand Down Expand Up @@ -75,4 +78,4 @@ check-integration:
lint:
golangci-lint run

.PHONY: build build-operator build-kamel build-embed-resources build-runtime dep codegen images images-build images-push test check test-integration check-integration clean release prepare-release cross-compile new-version git-tag increment-snapshot install-minishift
.PHONY: build build-operator build-kamel build-embed-resources build-runtime dep codegen images images-build images-push test check test-integration check-integration clean release prepare-release cross-compile package-examples new-version git-tag increment-snapshot install-minishift
8 changes: 8 additions & 0 deletions build/package_examples.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh

location=$(dirname $0)
rootdir=$(realpath $location/../)

version=$($location/get_version.sh)

tar -zcvf $rootdir/camel-k-examples-$version.tar.gz examples

0 comments on commit 57dd09f

Please sign in to comment.