You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by nf...@apache.org on 2019/06/10 13:02:16 UTC

[camel-k] 02/05: Fix #683: add staging workflow

This is an automated email from the ASF dual-hosted git repository.

nferraro pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-k.git

commit fdad9bd6e1c51f9f633e88386541e1822412014c
Author: nferraro <ni...@gmail.com>
AuthorDate: Fri Jun 7 15:15:28 2019 +0200

    Fix #683: add staging workflow
---
 script/Makefile | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/script/Makefile b/script/Makefile
index 5c6b51c..09142df 100644
--- a/script/Makefile
+++ b/script/Makefile
@@ -27,6 +27,9 @@ GIT_COMMIT := $(shell git rev-list -1 HEAD)
 # For signing binary artifacts
 GPG_PASS := $(GPG_PASS)
 
+# Used to push pre-relase artifacts
+STAGING_IMAGE_NAME := docker.io/camelk/camel-k
+
 GOLDFLAGS += -X main.GitCommit=$(GIT_COMMIT)
 GOFLAGS = -ldflags "$(GOLDFLAGS)"
 
@@ -167,6 +170,10 @@ images-dev: test package-artifacts
 images-push:
 	docker push $(IMAGE_NAME):$(VERSION)
 
+images-push-staging:
+	docker tag $(IMAGE_NAME):$(VERSION) $(STAGING_IMAGE_NAME):$(VERSION)
+	docker push $(STAGING_IMAGE_NAME):$(VERSION)
+
 set-version:
 	./script/set_version.sh $(VERSION) $(IMAGE_NAME)
 
@@ -187,9 +194,11 @@ unsnapshot-olm:
 
 release: clean codegen set-version build-resources unsnapshot-olm build images images-push cross-compile package-examples git-tag
 
+release-staging: clean codegen set-version build-resources unsnapshot-olm build images images-push-staging cross-compile package-examples git-tag
+
 install-minishift:
 	./script/install_minishift.sh
 install-minikube:
 	./script/install_minikube.sh
 
-.PHONY: build build-operator build-kamel build-resources build-builder build-olm unsnapshot-olm dep codegen images images-dec images-push test check test-integration clean release cross-compile package-examples set-version git-tag
+.PHONY: build build-operator build-kamel build-resources build-builder build-olm unsnapshot-olm dep codegen images images-dec images-push images-push-staging test check test-integration clean release cross-compile package-examples set-version git-tag