Skip to content

Commit

Permalink
SONAR-21739 Dynamic trigger of GCP docker publication
Browse files Browse the repository at this point in the history
  • Loading branch information
carminevassallo committed Feb 28, 2024
1 parent e05649d commit f89db0c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .cirrus.star
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
load("github.com/SonarSource/cirrus-modules@v2", "load_features")
load("cirrus", "env", "fs", "yaml")

def main(ctx):
return load_features(ctx)
return yaml.dumps(load_features(ctx)) + fs.read(".cirrus/tasks.yml")
6 changes: 3 additions & 3 deletions .cirrus.yml → .cirrus/tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ env:
WS_PRODUCTNAME: SonarSource/docker-sonarqube
STAGING_IMAGE_NAME: sonarsource/sonarqube
PUBLIC_IMAGE_NAME: sonarqube
GCLOUD_REGISTRY: gcr.io/sonarqube-marketplace-provider
GCLOUD_PRODUCT_NAME: sonarqube-dce
GCLOUD_REGISTRY: gcr.io/sonarsource-public
GCLOUD_PRODUCT_NAME: official-sonarqube-data-center-edition
CURRENT_LTS_VERSION: 9.9.4
CURRENT_VERSION: 10.4.1
NEXT_VERSION: 10.5.0
Expand All @@ -25,7 +25,7 @@ vm_instance_template: &VM_TEMPLATE
subnet_id: ${CIRRUS_AWS_SUBNET}

multi_arch_build_gcp_task:
only_if: $CIRRUS_CRON == 'nightly-mend-scan'
only_if: $CIRRUS_CRON == 'nightly-mend-scan' || $TRIGGER == 'PUSH_GCP_IMAGES'
ec2_instance:
<<: *VM_TEMPLATE
pull_public_images_script:
Expand Down

0 comments on commit f89db0c

Please sign in to comment.