File tree Expand file tree Collapse file tree 3 files changed +13
-4
lines changed
modules/test-tools/src/main/kotlin/jp/co/soramitsu/iroha2/testengine Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 1717 ALLURE_USERNAME :
1818 description : " ALLURE_USERNAME service parameter. Leave blank"
1919 required : false
20+ repository_dispatch :
21+ types : [allure-upload-trigger]
2022
2123env :
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
Original file line number Diff line number Diff line change 66jobs :
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
Original file line number Diff line number Diff 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"
You can’t perform that action at this time.
0 commit comments