summaryrefslogtreecommitdiffstats
path: root/jjb/dcae/script-dmaapbc-daily-release.sh
diff options
context:
space:
mode:
authorlj1412 <lji@research.att.com>2017-02-18 23:45:12 +0000
committerlj1412 <lji@research.att.com>2017-02-18 23:45:12 +0000
commit691b0ab8b3c4ff51c3e4c15b38bfbf903dc59845 (patch)
treed0ebd5d3ad68e7d594ac940d9a8ff94e8c0a2482 /jjb/dcae/script-dmaapbc-daily-release.sh
parentbaad9a90bd5b09393b227deaaeb579b32c84cd77 (diff)
dmaapbc job def and scripts
Change-Id: I711846e9c3da90397fb074a3cb2a18675d670e90 Signed-off-by: lj1412 <lji@research.att.com>
Diffstat (limited to 'jjb/dcae/script-dmaapbc-daily-release.sh')
-rwxr-xr-xjjb/dcae/script-dmaapbc-daily-release.sh34
1 files changed, 34 insertions, 0 deletions
diff --git a/jjb/dcae/script-dmaapbc-daily-release.sh b/jjb/dcae/script-dmaapbc-daily-release.sh
new file mode 100755
index 000000000..710a3196d
--- /dev/null
+++ b/jjb/dcae/script-dmaapbc-daily-release.sh
@@ -0,0 +1,34 @@
+#!/bin/bash
+# Create a debian package and push to remote repo
+#
+#
+# build the docker image. tag and then push to the remote repo
+#
+
+# !!! make sure the yaml file include docker-login as a builder before calling
+# this script
+
+IMAGE="dcae_dmaapbc"
+TAG="1.0.0"
+LFQI="${IMAGE}:${TAG}"
+BUILD_PATH="${WORKSPACE}"
+
+# build a docker image
+docker build --rm -f ${WORKSPACE}/Dockerfile -t ${LFQI} ${BUILD_PATH}
+
+
+#
+# push the image
+#
+# io registry DOCKER_REPOSITORIES="nexus3.openecomp.org:10001 \
+# release registry nexus3.openecomp.org:10002 \
+# snapshot registry nexus3.openecomp.org:10003"
+REPO="nexus3.openecomp.org:10003"
+
+RFQI="${REPO}/${LFQI}"
+# tag
+docker tag ${LFQI} ${RFQI}
+
+# push to remote repo
+docker push ${RFQI}
+