generated from streamnative/pulsar-io-template
-
Notifications
You must be signed in to change notification settings - Fork 8
38 lines (34 loc) · 1.29 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Pulsar IO AMQP1_0 Release
on:
release:
types: [published]
jobs:
upload:
name: Upload Release files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- name: Login streamnative docker hub
run: docker login -u="${{ secrets.DOCKER_USER }}" -p="${{ secrets.DOCKER_PASSWORD }}"
- name: build connector
run: |
version=`./scripts/dev/get-project-version.py`
mvn clean install -DskipTests
rm -rf pulsar-io-*
cp io-amqp1_0-impl/target/pulsar-io-amqp1_0-${version}.nar ./
cp README.md ./pulsar-io-amqp1_0-readme.md
echo "ls pulsar-io-*"
ls pulsar-io-*
- name: build and push docker image
run: |
PULSAR_VERSION=`./scripts/dev/get-project-version.py`
cd io-amqp1_0-impl
REPO=`mvn -q -Dexec.executable=echo -Dexec.args='${project.artifactId}' --non-recursive exec:exec 2>/dev/null`
cd -
IMAGE_REPO=streamnative/${REPO}
docker build --build-arg PULSAR_VERSION="$PULSAR_VERSION" -t ${IMAGE_REPO}:${PULSAR_VERSION} -f ./image/Dockerfile ./
docker push ${IMAGE_REPO}:${PULSAR_VERSION}