Commit 24178f31 authored by Matt Wise's avatar Matt Wise
Browse files

Merge branch 'aws-ci' into 'master'

use env var for code artifact domain. dynamically use current account as repo owner

See merge request !7
parents 67c8b679 c436e127
Pipeline #7170 failed with stages
in 5 minutes and 59 seconds
......@@ -31,7 +31,8 @@ phases:
- mkdir -p /root/.m2
- cp ./maven/settings.xml /root/.m2/settings.xml # copy the AWS-specific settings.xml to the CodeBuild instance's .m2 folder
# Get the AWS Maven Auth Token
- export AWS_OSDU_DEV_MAVEN_AUTH_TOKEN=`aws codeartifact get-authorization-token --domain osdu-dev --domain-owner 888733619319 --query authorizationToken --output text`
- 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:
commands:
- echo "Logging in to Amazon ECR..."
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment