-
Notifications
You must be signed in to change notification settings - Fork 65
/
.cirrus-private.yml
56 lines (53 loc) · 2.32 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
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:
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
env:
ARTIFACTORY_PRIVATE_USERNAME: VAULT[development/artifactory/token/${CIRRUS_REPO_OWNER}-${CIRRUS_REPO_NAME}-private-reader username]
ARTIFACTORY_PRIVATE_PASSWORD: VAULT[development/artifactory/token/${CIRRUS_REPO_OWNER}-${CIRRUS_REPO_NAME}-private-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: |-
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
env:
ARTIFACTORY_PRIVATE_USERNAME: VAULT[development/artifactory/token/${CIRRUS_REPO_OWNER}-${CIRRUS_REPO_NAME}-private-reader username]
ARTIFACTORY_PRIVATE_PASSWORD: VAULT[development/artifactory/token/${CIRRUS_REPO_OWNER}-${CIRRUS_REPO_NAME}-private-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: |-
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