.gitlab-ci.yml 3.29 KB
Newer Older
David Diederich's avatar
David Diederich committed
1
2
3
4
variables:
  GCP_BUILD_SUBDIR: provider/schema-gcp
  GCP_INT_TEST_SUBDIR: testing/schema-test-gcp
  GCP_APPLICATION_NAME: os-schema
5
6
7
  GCP_ENVIRONMENT: testing
  GCP_PROJECT: opendes-evt
  GCP_TENANT_NAME: opendesevt
David Diederich's avatar
David Diederich committed
8
9
10
  GCP_DEPLOY_ENV: p4d
  GCP_DOMAIN: cloud.slb-ds.com

11
  IBM_BUILD_SUBDIR: provider/schema-ibm
12
13
  IBM_INT_TEST_SUBDIR: testing/schema-test-core
  IBM_TEST_CMD: verify
Shrikant Garg's avatar
Shrikant Garg committed
14
15
  IBM_DEPLOYMENTS_SUBDIR: deployments/scripts/ibm
  IBM_DEPLOYMENTS_SCRIPTS_SUBDIR: deployments/scripts
16

17
18
19
  AZURE_SERVICE: schema
  AZURE_BUILD_SUBDIR: provider/schema-azure
  AZURE_TEST_SUBDIR: testing/schema-test-core
20
  AZURE_ONLY_TEST_SUBDIR: testing/schema-test-azure
21
  AZURE_DEPLOYMENTS_SUBDIR: deployments/scripts/azure
harshit aggarwal's avatar
harshit aggarwal committed
22
  AZURE_DEPLOYMENTS_SCRIPTS_SUBDIR: deployments/scripts
harshit aggarwal's avatar
harshit aggarwal committed
23
24
  AZURE_CLIENT_ID: $AZURE_PRINCIPAL_ID
  AZURE_CLIENT_SECRET: $AZURE_PRINCIPAL_SECRET
25
  DATA_PARTITION: opendes
26
  AZURE_AD_APP_RESOURCE_ID: $AZURE_APP_ID
27
28
  AZURE_STORAGE_CONNECTION_STRING: DefaultEndpointsProtocol=https;AccountName=${AZURE_BASE}data;AccountKey=${AZURE_STORAGE_KEY};EndpointSuffix=core.windows.net

29

Rucha Deshpande's avatar
Rucha Deshpande committed
30
  AWS_BUILD_SUBDIR: provider/schema-aws/build-aws
31
  AWS_TEST_SUBDIR: testing/schema-test-core
Rucha Deshpande's avatar
Rucha Deshpande committed
32
  AWS_DEPLOYMENTS_SUBDIR: deployments/scripts/aws
Matt Wise's avatar
Matt Wise committed
33
  AWS_SERVICE: schema
Rucha Deshpande's avatar
Rucha Deshpande committed
34
  AWS_ENVIRONMENT: dev
35
  AWS_MAVEN_TEST_COMMAND_OVERRIDE: verify
Matt Wise's avatar
Matt Wise committed
36
37
  AWS_DEPLOY_TARGET: EKS
  AWS_EKS_DEPLOYMENT_NAME: os-schema  
Rucha Deshpande's avatar
Rucha Deshpande committed
38

39
40
  OSDU_GCP_SERVICE: schema
  OSDU_GCP_VENDOR: gcp
41
  OSDU_GCP_TESTS_SUBDIR: testing/schema-test-core
42
  OSDU_GCP_HELM_PACKAGE_CHARTS: "devops/gcp/deploy devops/gcp/configmap"
43
44
  OSDU_GCP_DEPLOYMENTS_SUBDIR: deployments/scripts/google
  OSDU_GCP_DEPLOYMENTS_SCRIPTS_SUBDIR: deployments/scripts
vladislav's avatar
vladislav committed
45
  OSDU_GCP_HELM_CONFIG_SERVICE: schema-config
46
  OSDU_GCP_HELM_DEPLOYMENT_SERVICE: schema-deploy
vladislav's avatar
vladislav committed
47
48
  OSDU_GCP_HELM_CONFIG_SERVICE_VARS: "--set data.log_level=INFO  --set data.authorize_api=$OSDU_GCP_AUTHORIZE_API --set data.google_audiences=$GOOGLE_AUDIENCE --set data.partition_api=$OSDU_GCP_PARTITION_API --set data.shared_tenant_name=$OSDU_GCP_TENANT"
  OSDU_GCP_HELM_DEPLOYMENT_SERVICE_VARS: "--set data.image=$CI_REGISTRY_IMAGE/osdu-gcp:$CI_COMMIT_SHORT_SHA  --set data.serviceAccountName=workload-identity-schema"
49

David Diederich's avatar
David Diederich committed
50
include:
51
52
53
54
55
56
  - project: "osdu/platform/ci-cd-pipelines"
    file: "standard-setup.yml"

  - project: "osdu/platform/ci-cd-pipelines"
    file: "build/maven.yml"

57
  - project: "osdu/platform/ci-cd-pipelines"
58
    file: "scanners/fossa-maven.yml"
59

60
61
  - project: 'osdu/platform/ci-cd-pipelines'
    file: 'cloud-providers/aws.yml'
62
63

  - project: "osdu/platform/ci-cd-pipelines"
64
65
    file: "cloud-providers/ibm.yml"

66
67
  - project: "osdu/platform/ci-cd-pipelines"
    file: "scanners/gitlab-ultimate.yml"
68

69
70
  - project: "osdu/platform/ci-cd-pipelines"
    file: "cloud-providers/azure.yml"
71
72

  - project: "osdu/platform/ci-cd-pipelines"
vladislav's avatar
vladislav committed
73
    file: 'cloud-providers/osdu-gcp-gke.yml'
74
    ref: 'schema'
75

harshit aggarwal's avatar
harshit aggarwal committed
76
  - local: "/devops/azure/gitlab-bootstrap.yml"
Rucha Deshpande's avatar
Rucha Deshpande committed
77
  - local: "/devops/aws/bootstrap.yaml"
Shrikant Garg's avatar
Shrikant Garg committed
78
  - local: "/devops/ibm/bootstrap.yaml"
79
  - local: "/devops/gcp/bootstrap.yaml"
80
81
82
83

osdu-gcp-test:
  image: maven:3.6.3-jdk-8
  script:
84
    - $MAVEN_BUILD . test-results.log verify -q -f $OSDU_GCP_TESTS_SUBDIR/pom.xml
85
86
87
88
89
90
91
  artifacts:
    when: always
    paths:
      - test-results.log
      - $OSDU_GCP_TESTS_SUBDIR/target/*/TEST-*.xml
    reports:
      junit:
92
        - $OSDU_GCP_TESTS_SUBDIR/target/*/TEST-*.xml