Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide commit sha for RelEnv #3713

Merged
merged 5 commits into from
Jul 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,27 @@ onboarding_tests:
variables:
PRODUCT_NAME: auto_inject-ruby

save_versions:
image: $DOCKER_REGISTRY/images/mirror/ruby:3.2.2
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor: We may be able to use a simpler image without Ruby ;)

stage: deploy
needs: []
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"
when: on_success
- when: manual
allow_failure: true
script:
- git fetch --all
- echo COMMIT_SHA_1X=$(git rev-parse origin/1.x-stable) >> upstream.env
- echo COMMIT_SHA_2X=$(git rev-parse origin/master) >> upstream.env
artifacts:
paths:
- upstream.env

deploy_to_reliability_env:
stage: deploy
needs: [] # This allows the job to run without prerequisites
needs:
- save_versions
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"
when: on_success
Expand All @@ -248,6 +266,9 @@ deploy_to_reliability_env:
UPSTREAM_PROJECT_ID: $CI_PROJECT_ID
UPSTREAM_PROJECT_NAME: $CI_PROJECT_NAME
UPSTREAM_COMMIT_SHA: $CI_COMMIT_SHA
UPSTREAM_PACKAGE_JOB: save_versions
UPSTREAM_PIPELINE_ID: $CI_PIPELINE_ID
CI_SERVER_URL: $CI_SERVER_URL

prepare_image_destinations:
stage: deploy
Expand Down
Loading