Skip to content

Commit 51c7748

Browse files
authored
Adding latest tag and support arm64 architecture for the builds (#140)
* add latest tag and support arm64 arch * tags * support to all sample apps * image modification
1 parent 623650f commit 51c7748

File tree

3 files changed

+36
-3
lines changed

3 files changed

+36
-3
lines changed

sample-apps/spark-awssdkv1/build.gradle.kts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,21 @@ application {
2020

2121
jib {
2222
to {
23-
image = "public.ecr.aws/aws-otel-test/aws-otel-java-spark-awssdkv1:${System.getenv("COMMIT_HASH")}"
23+
image = "public.ecr.aws/aws-otel-test/aws-otel-java-spark-awssdkv1"
24+
tags = setOf("latest", "${System.getenv("COMMIT_HASH")}")
2425
}
2526
from {
2627
image = "public.ecr.aws/aws-otel-test/aws-opentelemetry-java-base:alpha"
28+
platforms {
29+
platform {
30+
architecture = "amd64"
31+
os = "linux"
32+
}
33+
platform {
34+
architecture = "arm64"
35+
os = "linux"
36+
}
37+
}
2738
}
2839
}
2940

sample-apps/spark/build.gradle.kts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,21 @@ application {
2323

2424
jib {
2525
to {
26-
image = "public.ecr.aws/aws-otel-test/aws-otel-java-spark:${System.getenv("COMMIT_HASH")}"
26+
image = "public.ecr.aws/aws-otel-test/aws-otel-java-spark"
27+
tags = setOf("latest", "${System.getenv("COMMIT_HASH")}")
2728
}
2829
from {
2930
image = "public.ecr.aws/aws-otel-test/aws-opentelemetry-java-base:alpha"
31+
platforms {
32+
platform {
33+
architecture = "amd64"
34+
os = "linux"
35+
}
36+
platform {
37+
architecture = "arm64"
38+
os = "linux"
39+
}
40+
}
3041
}
3142
}
3243

sample-apps/springboot/build.gradle.kts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,21 @@ dependencies {
1515

1616
jib {
1717
to {
18-
image = "public.ecr.aws/aws-otel-test/aws-otel-java-springboot:${System.getenv("COMMIT_HASH")}"
18+
image = "public.ecr.aws/aws-otel-test/aws-otel-java-springboot"
19+
tags = setOf("latest", "${System.getenv("COMMIT_HASH")}")
1920
}
2021
from {
2122
image = "public.ecr.aws/aws-otel-test/aws-opentelemetry-java-base:alpha"
23+
platforms {
24+
platform {
25+
architecture = "amd64"
26+
os = "linux"
27+
}
28+
platform {
29+
architecture = "arm64"
30+
os = "linux"
31+
}
32+
}
2233
}
2334
}
2435

0 commit comments

Comments
 (0)