Skip to content

Commit

Permalink
修正
Browse files Browse the repository at this point in the history
  • Loading branch information
nakagawa1022 committed Sep 18, 2024
1 parent c6cb2c3 commit d3e341a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
14 changes: 0 additions & 14 deletions manager/buildspecs/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,6 @@ phases:
esac
- echo "Config ENVIRONMENT_SUFFIX $ENVIRONMENT_SUFFIX"
- git status
- cd $CODEBUILD_SRC_DIR/$WORKING_DIR
- echo Create DynamoDB table...
- TN_PREFIX=${UT_RESOURCE_PREFIX}_${CODEBUILD_BUILD_NUMBER}_
- make create-all-table TN_PREFIX=${TN_PREFIX} DYNAMODB_OPTIONS=""
- echo "Create Database"
- DB_DATABASE="touchgift_delivery_data_manager_${CODEBUILD_BUILD_NUMBER}"
- mysql -h "${DB_HOST}" -u "${DB_USER}" -P "${DB_PORT}" -p${DB_PASSWORD} -e "CREATE DATABASE ${DB_DATABASE} TEMPLATE 'template0' ENCODING 'UTF8' LC_COLLATE 'ja_JP.UTF-8' LC_CTYPE 'ja_JP.UTF-8';" -p${MYSQL_PASSWORD}
- mysql -h "${DB_HOST}" -u "${DB_USER}" -p "${DB_PORT}" -p${DB_PASSWORD} {DB_DATABASE} < rdb/init/1_all.sql
- echo Logging in to Amazon ECR...
- IMAGE_TAG=$GITHUB_SHA
build:
Expand Down Expand Up @@ -81,12 +73,6 @@ phases:
make push-image TAG=$IMAGE_TAG AWS_VAULT_CMD= && \
make run-deploy TAG=$IMAGE_TAG AWS_VAULT_CMD= ENV=staging ENVIRONMENT_SUFFIX=${ENVIRONMENT_SUFFIX}
fi
finally:
- echo finally ...
- echo Delete DynamoDB table...
- make delete-all-table TN_PREFIX=${TN_PREFIX} DYNAMODB_OPTIONS=""
- echo "Drop database"
- mysql -h "${DB_HOST}" -u "${DB_USER}" -P "${DB_PORT}" -e "DROP DATABASE ${DB_DATABASE}" -p
post_build:
commands:
- echo Build completed on `date`
2 changes: 1 addition & 1 deletion manager/test
Original file line number Diff line number Diff line change
@@ -1 +1 @@
test3
test4

0 comments on commit d3e341a

Please sign in to comment.