Skip to content
Snippets Groups Projects
Commit e84dd1b2 authored by Marc Burnie [AWS]'s avatar Marc Burnie [AWS]
Browse files

adding versioning helm chart

parent df1eb185
No related branches found
No related tags found
No related merge requests found
apiVersion: v2 apiVersion: v2
name: "os-notification" name: "os-notification"
version: 0.1.0 version:
kubeVersion: "v1.21.x-x-x" kubeVersion: "v1.21.x-x-x"
description: Notification Helm Chart for Kubernetes description: Notification Helm Chart for Kubernetes
type: application type: application
......
...@@ -41,6 +41,7 @@ phases: ...@@ -41,6 +41,7 @@ phases:
- mvn -version - mvn -version
- mkdir -p /root/.m2 - mkdir -p /root/.m2
- cp ./provider/notification-aws/maven/settings.xml /root/.m2/settings.xml # copy the AWS-specific settings.xml to the CodeBuild instance's .m2 folder - cp ./provider/notification-aws/maven/settings.xml /root/.m2/settings.xml # copy the AWS-specific settings.xml to the CodeBuild instance's .m2 folder
- wget https://github.com/mikefarah/yq/releases/download/v4.27.2/yq_linux_amd64 -O /usr/bin/yq && chmod +x /usr/bin/yq
- export AWS_ACCOUNT_ID=`aws sts get-caller-identity | grep Account | cut -d':' -f 2 | cut -d'"' -f 2` - export AWS_ACCOUNT_ID=`aws sts get-caller-identity | grep Account | cut -d':' -f 2 | cut -d'"' -f 2`
- export AWS_OSDU_DEV_MAVEN_AUTH_TOKEN=`aws codeartifact get-authorization-token --domain $AWS_OSDU_DEV_MAVEN_DOMAIN --domain-owner $AWS_ACCOUNT_ID --query authorizationToken --output text` - export AWS_OSDU_DEV_MAVEN_AUTH_TOKEN=`aws codeartifact get-authorization-token --domain $AWS_OSDU_DEV_MAVEN_DOMAIN --domain-owner $AWS_ACCOUNT_ID --query authorizationToken --output text`
pre_build: pre_build:
...@@ -60,6 +61,8 @@ phases: ...@@ -60,6 +61,8 @@ phases:
- mkdir -p ${OUTPUT_DIR}/bin - mkdir -p ${OUTPUT_DIR}/bin
- mkdir -p ${OUTPUT_DIR}/testing && mkdir -p ${INTEGRATION_TEST_OUTPUT} && mkdir -p ${INTEGRATION_TEST_OUTPUT}/bin - mkdir -p ${OUTPUT_DIR}/testing && mkdir -p ${INTEGRATION_TEST_OUTPUT} && mkdir -p ${INTEGRATION_TEST_OUTPUT}/bin
- echo "Placeholder" >> ${OUTPUT_DIR}/build-info.json # touched so that the output directory has some content incase the build fails so that testing reports are uploaded - echo "Placeholder" >> ${OUTPUT_DIR}/build-info.json # touched so that the output directory has some content incase the build fails so that testing reports are uploaded
- pom_version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
- export VERSION=${pom_version%-*}
- printenv - printenv
- echo "Building primary service assemblies..." - echo "Building primary service assemblies..."
...@@ -68,6 +71,7 @@ phases: ...@@ -68,6 +71,7 @@ phases:
- echo "Building integration testing assemblies and gathering artifacts..." - echo "Building integration testing assemblies and gathering artifacts..."
- ./testing/notification-test-aws/build-aws/prepare-dist.sh - ./testing/notification-test-aws/build-aws/prepare-dist.sh
- yq -i '.version = strenv(VERSION)' devops/aws/chart/Chart.yaml
- echo "--Copying Helm Charts to ${OUTPUT_DIR:-dist}--" - echo "--Copying Helm Charts to ${OUTPUT_DIR:-dist}--"
- rsync -r devops/aws/* "${OUTPUT_DIR:-dist}" - rsync -r devops/aws/* "${OUTPUT_DIR:-dist}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment