File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
1
version : 0.2
2
2
3
3
env :
4
+ shell : bash
4
5
git-credential-helper : yes
5
6
parameter-store :
6
7
DOCKER_HUB_USER : ' /devops/shared/DOCKER_HUB_USER'
@@ -19,17 +20,19 @@ phases:
19
20
- sentry-cli --version
20
21
pre_build :
21
22
commands :
23
+ - eval $(./aws-env --recursive)
22
24
- export APP_BUILD_VERSION=${CODEBUILD_RESOLVED_SOURCE_VERSION}__$(date -u '+%Y-%m-%dT%T+00:00')
23
25
- export PKG_VERSION=$(node -p "require('./package.json').version")
24
26
- export SENTRY_VERSION=${ENV}-${PKG_VERSION}_BUILD_${CODEBUILD_RESOLVED_SOURCE_VERSION}
25
27
- echo $APP_BUILD_VERSION > ./src/.version
26
28
- cat ./src/.version
27
29
- aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin $DOCKER_REPOSITORY_URI
28
30
- IMAGE_TAG=$(echo $CODEBUILD_RESOLVED_SOURCE_VERSION | cut -c 1-7)
31
+
29
32
build :
30
33
commands :
31
- # - chmod +x ./codebuild-git-wrapper.sh
32
- # - ./codebuild-git-wrapper.sh "$REPO_URL" "$REPO_BRANCH"
34
+ - aws s3 cp s3://gameshq-build-pipeline-artifact-bucket/gameshq/google_credentials_games_api_staging.json ./google_credentials_games_api_staging.json
35
+ - aws s3 cp s3://gameshq-build-pipeline-artifact-bucket/gameshq/google_credentials_games_api_prod.json ./google_credentials_games_api_prod.json
33
36
- echo $DOCKER_HUB_PASSWORD | docker login --username $DOCKER_HUB_USER --password-stdin
34
37
- docker build -t $DOCKER_REPOSITORY_URI:latest .
35
38
- docker tag $DOCKER_REPOSITORY_URI:latest $DOCKER_REPOSITORY_URI:$IMAGE_TAG
You can’t perform that action at this time.
0 commit comments