Skip to content

Commit 8f98b86

Browse files
authored
Support multi-arch connector image release (#366)
1 parent f9038f4 commit 8f98b86

2 files changed

Lines changed: 32 additions & 6 deletions

File tree

.github/workflows/release.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ jobs:
2020
- name: Login streamnative docker hub
2121
run: docker login -u="${{ secrets.DOCKER_USER }}" -p="${{ secrets.DOCKER_PASSWORD }}"
2222

23+
- name: Set up QEMU
24+
uses: docker/setup-qemu-action@v3
25+
26+
- name: Set up Docker Buildx
27+
uses: docker/setup-buildx-action@v3
28+
2329
- name: Set project version
2430
run: |
2531
project_version=${GITHUB_REF#refs/tags/v}
@@ -38,12 +44,17 @@ jobs:
3844
with:
3945
max_attempts: 99
4046
retry_wait_seconds: 60
41-
timeout_minutes: 5
47+
timeout_minutes: 30
4248
command: |
4349
CONNECTOR_VERSION=`./scripts/get-version.sh`
4450
PULSAR_VERSION=`mvn -q -Dexec.executable=echo -Dexec.args='${pulsar.version}' --non-recursive exec:exec 2>/dev/null`
4551
REPO=`mvn -q -Dexec.executable=echo -Dexec.args='${project.artifactId}' --non-recursive exec:exec 2>/dev/null`
4652
IMAGE_REPO=streamnative/${REPO}
47-
docker build --build-arg PULSAR_VERSION="$PULSAR_VERSION" -t ${IMAGE_REPO}:${CONNECTOR_VERSION} -f ./image/Dockerfile ./
48-
docker push ${IMAGE_REPO}:${CONNECTOR_VERSION}
53+
docker buildx build \
54+
--platform linux/amd64,linux/arm64 \
55+
--build-arg PULSAR_VERSION="$PULSAR_VERSION" \
56+
-t ${IMAGE_REPO}:${CONNECTOR_VERSION} \
57+
-f ./image/Dockerfile \
58+
--push \
59+
./
4960

pom.xml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@
4747
<testRetryCount>2</testRetryCount>
4848

4949
<!-- connector dependencies -->
50-
<jackson.version>2.12.7.1</jackson.version>
51-
<lombok.version>1.18.20</lombok.version>
52-
<pulsar.version>4.0.1.4</pulsar.version>
50+
<jackson.version>2.18.6</jackson.version>
51+
<lombok.version>1.18.42</lombok.version>
52+
<pulsar.version>4.2.0.6</pulsar.version>
5353
<activemq.verion>5.15.12</activemq.verion>
5454

5555
<!-- test dependencies -->
@@ -89,6 +89,21 @@
8989
<artifactId>jackson-databind</artifactId>
9090
<version>${jackson.version}</version>
9191
</dependency>
92+
<dependency>
93+
<groupId>com.fasterxml.jackson.core</groupId>
94+
<artifactId>jackson-core</artifactId>
95+
<version>${jackson.version}</version>
96+
</dependency>
97+
<dependency>
98+
<groupId>com.fasterxml.jackson.core</groupId>
99+
<artifactId>jackson-annotations</artifactId>
100+
<version>${jackson.version}</version>
101+
</dependency>
102+
<dependency>
103+
<groupId>com.fasterxml.jackson.datatype</groupId>
104+
<artifactId>jackson-datatype-jsr310</artifactId>
105+
<version>${jackson.version}</version>
106+
</dependency>
92107
<dependency>
93108
<groupId>org.projectlombok</groupId>
94109
<artifactId>lombok</artifactId>

0 commit comments

Comments
 (0)