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

Merge branch 'aws-helm' into 'master'

Versioning helm charts

See merge request !258
parents c0a5e134 b98376f8
No related branches found
No related tags found
1 merge request!258Versioning helm charts
Pipeline #134266 failed
apiVersion: v2
name: "os-notification"
version: 0.1.0
version:
kubeVersion: "v1.21.x-x-x"
description: Notification Helm Chart for Kubernetes
type: application
......
......@@ -41,6 +41,7 @@ phases:
- mvn -version
- 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
- wget https://github.com/mikefarah/yq/releases/download/v4.27.2/yq_linux_amd64 -q -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_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:
......@@ -60,6 +61,8 @@ phases:
- mkdir -p ${OUTPUT_DIR}/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
- pom_version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
- export VERSION=${pom_version%-*}
- printenv
- echo "Building primary service assemblies..."
......@@ -68,6 +71,7 @@ phases:
- echo "Building integration testing assemblies and gathering artifacts..."
- ./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}--"
- 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