Skip to content

Pull Request By Argon #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions buildspec.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
version: 0.1
version: 0.2

env:
variables:
API_BASE: $API_BASE
ACCESS_KEY: iaKp1NWkDDL3s8dYE1lTiVrCIAUV3+U5l7f9sAwf
CODEBUILD_REGION: us-east-1
REGION: us-east-1
secrets-manager:
ACCESS_KEY: "AccessKey:AccessKey"
phases:
install:
runtime-versions:
nodejs: 12
pre_build:
commands:
- printenv > .env
- $(aws ecr get-login --region $CODEBUILD_REGION --no-include-email)
- $(aws ecr get-login --region $REGION --no-include-email)
build:
commands:
- IMAGE_TAG='echo $CODEBUILD_INITIATOR | cut -d '/' -f2'
Expand All @@ -21,4 +22,4 @@ phases:
- docker tag $REPOSITORY_URI $REPOSITORY_URI:$IMAGE_TAG
post_build:
commands:
- docker push $REPOSITORY_URI:$IMAGE_TAG
- docker push $REPOSITORY_URI:$IMAGE_TAG