Skip to content

Commit 1bb7130

Browse files
Produce multi-platform docker image (#76)
1 parent f6d0f08 commit 1bb7130

File tree

6 files changed

+12
-10
lines changed

6 files changed

+12
-10
lines changed

.github/workflows/build-dev-release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ jobs:
99
build-target: 'Sonatype,Docker'
1010
devRelease: true
1111
createTag: true
12+
docker-multi-platform: true
1213
docker-username: ${{ github.actor }}
1314
secrets:
1415
docker-password: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/build-release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ jobs:
99
build-target: 'Sonatype,Docker'
1010
devRelease: false
1111
createTag: true
12+
docker-multi-platform: true
1213
docker-username: ${{ github.actor }}
1314
secrets:
1415
docker-password: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/build-snapshot.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
uses: th2-net/.github/.github/workflows/compound-java-dev.yml@main
1414
with:
1515
build-target: 'Sonatype,Docker'
16+
docker-multi-platform: true
1617
docker-username: ${{ github.actor }}
1718
secrets:
1819
docker-password: ${{ secrets.GITHUB_TOKEN }}

Dockerfile

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
FROM gradle:8.11.1-jdk21 AS build
2-
ARG release_version
3-
COPY ./ .
4-
RUN gradle build dockerPrepare \
5-
-Prelease_version=${release_version}
6-
7-
FROM adoptopenjdk/openjdk11:alpine
1+
FROM amazoncorretto:11-alpine-jdk
82
WORKDIR /home
9-
COPY --from=build /home/gradle/build/docker ./
3+
COPY ./build/docker .
104
ENTRYPOINT ["/home/service/bin/service"]

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Csv codec (5.4.1)
1+
# Csv codec (5.4.2)
22

33
## Description
44

@@ -150,6 +150,11 @@ spec:
150150

151151
## Release notes
152152

153+
### 5.4.2
154+
155+
+ Produce multi-platform docker image
156+
+ migrated to [amazoncorretto:11-alpine-jdk](https://hub.docker.com/layers/library/amazoncorretto/11-alpine-jdk) docker image as base
157+
153158
### 5.4.1
154159
+ Fixed: [[GH-73] set `csv` protocol during decode](https://github.com/th2-net/th2-codec-csv/issues/73)
155160
+ Updated:

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
release_version=5.4.1
1+
release_version=5.4.2
22
description='th2 codec csv'
33
vcs_url=https://github.com/th2-net/th2-codec-csv

0 commit comments

Comments
 (0)