Related to GAR Integration: Add predefined CI variables (#425153 - closed). This change introduces three new CI environment variables which are only present if the Google Cloud Artifact Registry project integration (!141127 (merged)) is enabled.
This change does not include any documentation yet. We're going to introduce documentation for this integration later on, as part of #425158 (closed).
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
First we need to setup the Google Cloud Artifact Registry project integration (that this change depends on) as explained in !141127 (merged):
Simulate a SaaS instance in the local GDK. Note that this is an EE feature.
Enable the feature flag in the rails console:
Feature.enable(:gcp_artifact_registry)
Visit Project > Settings > Integrations
Choose to configure Google Cloud Platform Artifact Registry
integration
Fill the form with random strings (no need for proper values for test purposes) and enable the integration.
The new integration should appear in the list of active integrations.
Now we can setup the actual test for this change:
.gitlab-ci.yml
file on your test project so that it includes a job like this:
test:
script:
- env | grep GOOGLE_ARTIFACT_REGISTRY