Skip to content

Commit d15505f

Browse files
committed
Merge remote-tracking branch 'origin/feature/log-level' into feature/log-level
2 parents 8df6488 + c346263 commit d15505f

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

.github/workflows/iroha2-allure.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,11 @@ on:
1717
ALLURE_USERNAME:
1818
description: "ALLURE_USERNAME service parameter. Leave blank"
1919
required: false
20+
repository_dispatch:
21+
types: [allure-upload-trigger]
2022

2123
env:
24+
IROHA_IMAGE_TAG: "dev"
2225
ALLURE_RESULTS: "${{ github.workspace }}/modules/client/build/allure-results"
2326
ALLURE_JOB_RUN_ID: ${{ github.event.inputs.ALLURE_JOB_RUN_ID }}
2427

.github/workflows/iroha2-pr.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
jobs:
77
build:
88
runs-on: self-hosted
9+
10+
env:
11+
IROHA_IMAGE_TAG: "2.0.0-pre-rc.22.2" # Place "dev" to run on the last iroha
912

1013
steps:
1114
- uses: actions/checkout@v3

modules/test-tools/src/main/kotlin/jp/co/soramitsu/iroha2/testengine/IrohaContainer.kt

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,13 @@ open class IrohaContainer : GenericContainer<IrohaContainer> {
152152
private fun String.readStatusBlocks() = JSON_SERDE.readTree(this).get("blocks")?.doubleValue()
153153

154154
companion object {
155-
private fun IrohaConfig.getFullImageName() = when (this.imageTag.contains("sha256")) {
156-
true -> "${this.imageName}@${this.imageTag}"
157-
false -> "${this.imageName}:${this.imageTag}"
158-
}.let { DockerImageName.parse(it) }
155+
private fun IrohaConfig.getFullImageName(): DockerImageName {
156+
val imageTag = System.getenv("IROHA_IMAGE_TAG") ?: DEFAULT_IMAGE_TAG
157+
return when (imageTag.contains("sha256")) {
158+
true -> "${this.imageName}@$imageTag"
159+
false -> "${this.imageName}:$imageTag"
160+
}.let { DockerImageName.parse(it) }
161+
}
159162

160163
const val NETWORK_ALIAS = "iroha"
161164
const val DEFAULT_IMAGE_TAG = "2.0.0-pre-rc.22.2"

0 commit comments

Comments
 (0)