Skip to content
Snippets Groups Projects
Commit 595fa84b 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 !26
parents 3c3d67e3 c727bb4a
No related branches found
No related tags found
1 merge request!26use env var for code artifact domain. dynamically use current account as repo owner
Pipeline #7057 passed
......@@ -30,7 +30,8 @@ phases:
- echo $JAVA_HOME #WHY
- mkdir -p /root/.m2
- cp ./provider/indexer-aws/maven/settings.xml /root/.m2/settings.xml # copy the AWS-specific settings.xml to the CodeBuild instance's .m2 folder
- 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..."
......
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