Skip to content

Commit 204642c

Browse files
Harry Sharrysingh
authored andcommitted
CORE-26554 Adding travvis release scripts | docker tag to README
1 parent f87d465 commit 204642c

File tree

5 files changed

+85
-0
lines changed

5 files changed

+85
-0
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
### Subject of the issue
2+
Describe your issue here.
3+
4+
### Your environment
5+
* version of docker
6+
7+
### Steps to reproduce
8+
Tell us how to reproduce this issue.
9+
10+
### Expected behaviour
11+
Tell us what should happen
12+
13+
### Actual behaviour
14+
Tell us the actual behaviour
File renamed without changes.

.travis/release.sh

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
#!/bin/sh -e
2+
#
3+
# Copyright 2019 Adobe. All rights reserved.
4+
# This file is licensed to you under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License. You may obtain a copy
6+
# of the License at http://www.apache.org/licenses/LICENSE-2.0
7+
#
8+
# Unless required by applicable law or agreed to in writing, software distributed under
9+
# the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
10+
# OF ANY KIND, either express or implied. See the License for the specific language
11+
# governing permissions and limitations under the License.
12+
#
13+
14+
echo "This will trigger a release job on Travis, building the version of master as a release. Are you sure you want to continue? (Y/n)"
15+
16+
read CONTINUE_RELEASE
17+
18+
if [ "$CONTINUE_RELEASE" = "Y" ]; then
19+
TRAVIS_TOKEN=$(travis token)
20+
TRAVIS_REQUEST='{
21+
"request": {
22+
"message": "Perform Release",
23+
"branch":"master",
24+
"config": {
25+
"script": ".travis/travis-release.sh"
26+
}
27+
}
28+
}'
29+
30+
curl -s -X POST \
31+
-H "Content-Type: application/json" \
32+
-H "Accept: application/json" \
33+
-H "Travis-API-Version: 3" \
34+
-H "Authorization: token $TRAVIS_TOKEN" \
35+
-d "$TRAVIS_REQUEST" \
36+
https://api.travis-ci.org/repo/adobe%2Fexperience-platform-streaming-connect/requests
37+
else
38+
echo "Aborted."
39+
fi

.travis/travis-release.sh

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/bin/sh -e
2+
#
3+
# Copyright 2019 Adobe. All rights reserved.
4+
# This file is licensed to you under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License. You may obtain a copy
6+
# of the License at http://www.apache.org/licenses/LICENSE-2.0
7+
#
8+
# Unless required by applicable law or agreed to in writing, software distributed under
9+
# the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
10+
# OF ANY KIND, either express or implied. See the License for the specific language
11+
# governing permissions and limitations under the License.
12+
#
13+
14+
if [ -z "$DOCKERHUB_PASSWORD" ]; then
15+
echo "This is supposed to be executed on travis. Use .travis/release.sh to trigger a release job."
16+
exit 1
17+
fi
18+
19+
echo "Performing docker login..."
20+
echo $DOCKERHUB_PASSWORD | docker login -u $DOCKERHUB_USERNAME --password-stdin
21+
22+
echo "Checkout master branch explicitly, as we run the release with a in detached head."
23+
git checkout -qf master;
24+
25+
echo "Starting gradle build..."
26+
./gradlew clean build
27+
28+
TAG_NAME=${TAG_NAME:-"latest"}
29+
echo "Starting docker build for tag name ${TAG_NAME}..."
30+
docker build -t adobe/experience-platform-streaming-connect:${TAG_NAME} .
31+
docker push adobe/experience-platform-streaming-connect:${TAG_NAME}

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# What is Kafka Connect?
22

3+
[![Docker Hub](https://img.shields.io/badge/docker-latest-blue.svg)](https://hub.docker.com/r/adobe/experience-platform-streaming-connect/)
34
[![Build Status](https://travis-ci.com/adobe/experience-platform-streaming-connect.svg?branch=master)](https://travis-ci.com/adobe/experience-platform-streaming-connect)
45

56
"[Kafka Connect](https://docs.confluent.io/current/connect/index.html)", an open source component of Apache Kafka, is a framework for connecting Kafka with external systems such as databases, key-value stores, search indexes, and file systems.

0 commit comments

Comments
 (0)