Skip to content

Commit 17a1a9a

Browse files
BUILD-2279 Migrate CirrusCI to AWS
1 parent e501aec commit 17a1a9a

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

.cirrus.star

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
load("github.com/SonarSource/cirrus-modules@v2", "load_features")
22

33
def main(ctx):
4-
return load_features(ctx, features=["vault"])
4+
return load_features(ctx)

.cirrus.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# content of service-account-credentials.json, used to access to Google Cloud Platform
2-
gcp_credentials: ENCRYPTED[8b32c15733323dbb62734f04c9090473e2272ed5820f6deb0b2263cac589600488eb62ae049c7550db89d9d3934954f7]
3-
41
#
52
# ENV VARIABLES
63
#
@@ -32,9 +29,9 @@ env:
3229
# RE-USABLE CONFIGS
3330
#
3431
container_definition: &CONTAINER_DEFINITION
35-
image: us.gcr.io/sonarqube-team/base:j11-m3-latest
36-
cluster_name: cirrus-ci-cluster
37-
zone: us-central1-a
32+
image: ${CIRRUS_AWS_ACCOUNT}.dkr.ecr.eu-central-1.amazonaws.com/base:j11-m3-latest
33+
cluster_name: ${CIRRUS_CLUSTER_NAME}
34+
region: eu-central-1
3835
namespace: default
3936

4037
only_sonarsource_qa: &ONLY_SONARSOURCE_QA
@@ -44,7 +41,7 @@ only_sonarsource_qa: &ONLY_SONARSOURCE_QA
4441
# TASKS
4542
#
4643
build_task:
47-
gke_container:
44+
eks_container:
4845
<<: *CONTAINER_DEFINITION
4946
cpu: 2
5047
memory: 1G
@@ -65,7 +62,7 @@ qa_task:
6562
depends_on:
6663
- build
6764
<<: *ONLY_SONARSOURCE_QA
68-
gke_container:
65+
eks_container:
6966
<<: *CONTAINER_DEFINITION
7067
cpu: 2
7168
memory: 3G
@@ -95,7 +92,7 @@ promote_task:
9592
depends_on:
9693
- qa
9794
<<: *ONLY_SONARSOURCE_QA
98-
gke_container:
95+
eks_container:
9996
<<: *CONTAINER_DEFINITION
10097
cpu: 0.5
10198
memory: 500M

0 commit comments

Comments
 (0)