File tree 3 files changed +40
-1
lines changed
src/test/groovy/io/opentelemetry/smoketest
3 files changed +40
-1
lines changed Original file line number Diff line number Diff line change 10
10
- main
11
11
12
12
jobs :
13
+ generate-tag :
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ - name : Set tag
17
+ run : |
18
+ echo "::set-output name=tag::$(date '+%Y%m%d').$GITHUB_RUN_ID"
19
+
13
20
build :
14
21
uses : ./.github/workflows/reusable-smoke-test-images.yml
15
22
with :
16
23
project : " :smoke-tests:images:quarkus"
24
+ tag : ${{ needs.generate-tag.outputs.tag }}
17
25
cache-read-only : true
18
26
# Quarkus 3.7+ requires Java 17+
19
27
skip-java-8 : true
20
28
skip-java-11 : true
29
+
30
+ verify :
31
+ runs-on : ubuntu-latest
32
+ steps :
33
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
34
+
35
+ - name : Set up Gradle cache
36
+ uses : gradle/actions/setup-gradle@d156388eb19639ec20ade50009f3d199ce1e2808 # v4.1.0
37
+ with :
38
+ cache-read-only : true
39
+
40
+ - name : Build Java 21 Docker image
41
+ run : ./gradlew :smoke-tests:images:quarkus:jibDockerBuild -Ptag=local -PtargetJDK=21 -Djib.httpTimeout=120000 -Djib.console=plain
42
+
43
+ - name : Build Java 23 Docker image
44
+ run : ./gradlew :smoke-tests:images:quarkus:jibDockerBuild -Ptag=local -PtargetJDK=23 -Djib.httpTimeout=120000 -Djib.console=plain
45
+
46
+ - name : Verify
47
+ run : ./gradlew :smoke-tests:test -PsmokeTestSuite=other -Dtag=local
Original file line number Diff line number Diff line change 46
46
container {
47
47
mainClass = " bogus" // to suppress Jib warning about missing main class
48
48
}
49
+ pluginExtensions {
50
+ pluginExtension {
51
+ implementation = " com.google.cloud.tools.jib.gradle.extension.quarkus.JibQuarkusExtension"
52
+ }
53
+ }
49
54
}
50
55
51
56
tasks {
Original file line number Diff line number Diff line change @@ -18,8 +18,15 @@ import static io.opentelemetry.smoketest.TestContainerManager.useWindowsContaine
18
18
@IgnoreIf ({ useWindowsContainers() })
19
19
class QuarkusSmokeTest extends SmokeTest {
20
20
21
+ private static final TAG = getTag()
22
+
23
+ private static String getTag () {
24
+ String tag = System . getenv(" TAG" )
25
+ return tag != null ? tag : " 20211213.1574595137"
26
+ }
27
+
21
28
protected String getTargetImage (String jdk ) {
22
- " ghcr.io/open-telemetry/opentelemetry-java-instrumentation/smoke-test-quarkus:jdk$jdk -20211213.1574595137 "
29
+ " ghcr.io/open-telemetry/opentelemetry-java-instrumentation/smoke-test-quarkus:jdk$jdk -$T AG "
23
30
}
24
31
25
32
@Override
You can’t perform that action at this time.
0 commit comments