diff --git a/polkadot/.gitlab-ci.yml b/polkadot/.gitlab-ci.yml index bc9d30ca6a1f1062dc896edeb4fbfdfa1f2aaeb9..9451d778f4111754870bb606b464a385ec44c025 100644 --- a/polkadot/.gitlab-ci.yml +++ b/polkadot/.gitlab-ci.yml @@ -246,15 +246,15 @@ generate-impl-guide: - buildah push --format=v2s2 "$IMAGE_NAME:$EXTRATAG" # pass artifacts to the trigget-simnet job # this twist is to match the similar logic in substrate - - echo "VERSION=${EXTRATAG}" > build.env - - echo "TRIGGERER=${CI_PROJECT_NAME}" >> build.env + - echo "IMAGE_NAME=${IMAGE_NAME}" > build.env + - echo "VERSION=${EXTRATAG}" >> build.env after_script: - buildah logout "$IMAGE_NAME" artifacts: reports: # this artifact is used in trigger-simnet job # https://docs.gitlab.com/ee/ci/multi_project_pipelines.html#with-variable-inheritance - dotenv: build.env + dotenv: artifacts/build.env publish-dockerhub: @@ -350,10 +350,14 @@ trigger-simnet: <<: *rules-test needs: - job: publish-dockerhub - # build.env is passed with an exact VERSION (EXTRATAG here, i.e. 2643-0.8.29-5f689e0a-6b24dc54) - # Simnet uses an image published on PRs with this exact version for triggered runs on commits. - # And parity/rococo:rococo-v1 for runs not launched by this job. + # `build.env` is taken by the triggered job from `publish-dockerhub` job with an + # exact `$VERSION` (`$EXTRATAG` here, i.e. `2643-0.8.29-5f689e0a-6b24dc54`) + # Simnet uses an image published on PRs with this exact version for triggered runs + # on commits. And parity/rococo:rococo-v1 for runs not launched by this job. trigger: project: parity/simnet branch: master strategy: depend + variables: + TRGR_PROJECT: ${CI_PROJECT_NAME} + TRGR_REF: ${CI_COMMIT_REF_NAME}