]> source.dussan.org Git - sonar-scanner-cli.git/commitdiff
BUILD-2085 Migrate sonar-scanner-cli to the new cluster
authorDavid Rautureau <david.rautureau@sonarsource.com>
Wed, 2 Nov 2022 16:31:26 +0000 (17:31 +0100)
committerJulien Carsique <julien.carsique@sonarsource.com>
Wed, 2 Nov 2022 17:25:39 +0000 (18:25 +0100)
.cirrus.star [new file with mode: 0644]
.cirrus.yml

diff --git a/.cirrus.star b/.cirrus.star
new file mode 100644 (file)
index 0000000..41f3f60
--- /dev/null
@@ -0,0 +1,5 @@
+load("github.com/SonarSource/cirrus-modules@v1", "cirrus_auth")
+
+def main(ctx):
+  return cirrus_auth()
+
index 735fd49b594b1cbacac0186014be016926161ef9..4926de6d07ef0d645ae0fcd3de9b3791aa29200d 100644 (file)
@@ -1,8 +1,3 @@
-aws_credentials:
-  role_arn: arn:aws:iam::275878209202:role/CirrusCI
-  role_session_name: cirrus
-  region: eu-central-1
-
 #
 # ENV VARIABLES
 #
@@ -35,18 +30,18 @@ env:
 #
 eks_container: &EKS_CONTAINER
   region: eu-central-1
-  cluster_name: CirrusCI
+  cluster_name: ${CIRRUS_CLUSTER_NAME}
   namespace: default
-  image: 275878209202.dkr.ecr.eu-central-1.amazonaws.com/base:j11-m3-latest
+  image: ${CIRRUS_AWS_ACCOUNT}.dkr.ecr.eu-central-1.amazonaws.com/base:j11-m3-latest
   cpu: 1
   memory: 2G
 
 ec2_instance: &EC2_INSTANCE_WINDOWS
   experimental: true # see https://github.com/cirruslabs/cirrus-ci-docs/issues/1051
   region: eu-central-1
-  subnet_id: subnet-063c427f490da35b9
+  subnet_id: ${CIRRUS_AWS_SUBNET}
   type: t2.2xlarge
-  image: lt-base-windows-jdk11-v*
+  image: base-windows-jdk11-v*
   platform: windows
 
 only_sonarsource_qa: &ONLY_SONARSOURCE_QA
@@ -99,7 +94,7 @@ linux_qa_java17_task:
   <<: *ONLY_SONARSOURCE_QA
   eks_container:
     <<: *EKS_CONTAINER
-    image: 275878209202.dkr.ecr.eu-central-1.amazonaws.com/base:j17-m3-latest
+    image: ${CIRRUS_AWS_ACCOUNT}.dkr.ecr.eu-central-1.amazonaws.com/base:j17-m3-latest
   env:
     matrix:
       - SQ_VERSION: LATEST_RELEASE[8.9]