forked from SonarSource/sonar-update-center-properties
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.cirrus-private.yml
60 lines (57 loc) · 2.29 KB
/
.cirrus-private.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
env:
CIRRUS_SHELL: bash
CIRRUS_CLONE_DEPTH: 1
ARTIFACTORY_URL: VAULT[development/kv/data/repox data.url]
AWS_DEFAULT_REGION: eu-central-1
S3_BUCKET: downloads-cdn-eu-central-1-prod
eks_container_template: &EKS_CONTAINER_TEMPLATE
dockerfile: .cirrus/Dockerfile
cluster_name: ${CIRRUS_CLUSTER_NAME}
builder_role: cirrus-builder
builder_image: docker-builder-v*
builder_instance_type: t2.small
builder_subnet_id: ${CIRRUS_AWS_SUBNET}
region: eu-central-1
namespace: default
cpu: 1
memory: 1G
docker_arguments:
CIRRUS_AWS_ACCOUNT: ${CIRRUS_AWS_ACCOUNT}
po-generate-update-center-prod_task:
trigger_type: manual
eks_container:
<<: *EKS_CONTAINER_TEMPLATE
env:
ARTIFACTORY_ACCESS_TOKEN: VAULT[development/artifactory/token/${CIRRUS_REPO_OWNER}-${CIRRUS_REPO_NAME}-public-reader access_token]
AWS_ACCESS_KEY_ID: VAULT[development/aws/sts/downloads access_key]
AWS_SECRET_ACCESS_KEY: VAULT[development/aws/sts/downloads secret_key]
AWS_SESSION_TOKEN: VAULT[development/aws/sts/downloads security_token]
maven_cache:
folder: ${CIRRUS_WORKING_DIR}/.m2/repository
script: |-
cp ~/.m2/settings-public-auth.xml ~/.m2/settings.xml
source po-generate-update-center-prod/generate.sh
source po-generate-update-center-prod/prepare_transfer_dir.sh
po-generate-update-center-prod/upload.sh
cleanup_before_cache_script:
- cleanup_maven_repository || true
po-generate-update-center-sc-prod_task:
trigger_type: manual
eks_container:
<<: *EKS_CONTAINER_TEMPLATE
env:
ARTIFACTORY_ACCESS_TOKEN: VAULT[development/artifactory/token/${CIRRUS_REPO_OWNER}-${CIRRUS_REPO_NAME}-public-reader access_token]
AWS_ACCESS_KEY_ID: VAULT[development/aws/sts/downloads access_key]
AWS_SECRET_ACCESS_KEY: VAULT[development/aws/sts/downloads secret_key]
AWS_SESSION_TOKEN: VAULT[development/aws/sts/downloads security_token]
UPDATE_CENTER_PROPERTIES_FILE: update-center-source-sc.properties
maven_cache:
folder: ${CIRRUS_WORKING_DIR}/.m2/repository
script: |-
cp ~/.m2/settings-public-auth.xml ~/.m2/settings.xml
source po-generate-update-center-prod/generate.sh
po-generate-update-center-prod/upload-sc.sh
cleanup_before_cache_script:
- cleanup_maven_repository || true
json_artifacts:
path: target/update-center/json/*.json