Commit 00de309f authored by Rucha Deshpande's avatar Rucha Deshpande
Browse files

Add buildspec.yaml

commit 2ef08d05
Author: Rucha Deshpande <deshruch@amazon.com>
Date: Thu Jan 07 2021 13:20:32 GMT-0600 (Central Standard Time)

    Remove comments

commit 8109fecb
Author: Rucha Deshpande <deshruch@amazon.com>
Date: Thu Jan 07 2021 11:43:13 GMT-0600 (Central Standard Time)

    Add buildspec for aws

commit 5cf37ccd
Author: Rucha Deshpande <deshruch@amazon.com>
Date: Thu Jan 07 2021 11:06:43 GMT-0600 (Central Standard Time)

    add config.ts

commit 5409e041
Author: Rucha Deshpande <deshruch@amazon.com>
Date: Thu Jan 07 2021 11:02:51 GMT-0600 (Central Standard Time)

    Initial AWS commit
parent de6f5813
......@@ -29,5 +29,8 @@ keys
# newman junit output
newman
.DS_Store
.idea
# backup files
*.bak
\ No newline at end of file
# Copyright © 2020 Amazon Web Services
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html
# https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-env-vars.html
version: 0.2
env:
secrets-manager:
DOCKER_USERNAME: /osdu/devops/docker_credentials:username
DOCKER_PASSWORD: /osdu/devops/docker_credentials:password
phases:
install:
commands:
- npm install
pre_build:
commands:
- echo "Logging in to Amazon ECR..."
- $(aws ecr get-login --no-include-email --region $AWS_REGION) # authenticate with ECR via the AWS CLI
build:
commands:
- echo "Building seismic-store-service"
- npm run build
artifacts:
type: zip
files:
- "**/*"
base-directory: "dist"
name: ${REPO_NAME}_${BRANCH_NAME}_$(date +%F)_${CODEBUILD_BUILD_NUMBER}.zip
// Copyright © 2020 Amazon Web Services
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
\ No newline at end of file
......@@ -16,4 +16,5 @@
export * as google from './google';
export * as azure from './azure';
export * as ibm from './ibm';
\ No newline at end of file
export * as ibm from './ibm';
export * as aws from './aws';
Supports Markdown
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