-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 初期の.editorconfigファイルを追加する * gitignoreに追加: Nodeのログやキャッシュ、ビルドファイルを無視 * Brewfileとtool-versionsを追加しました。 * ホームブリューの.gitignoreファイルを更新する。 * pnpmをインストールするコマンドを追加する * パッケージjsonファイルを追加します。 * Add pnpm lock file * 依存関係を追加します。 * パッケージとtsconfigの更新を追加する * Add prettier as a devDependency * 設定ファイルを追加する。 * "format"スクリプトを追加します。 * パッケージにHuskyとLint-Stagedを追加する * package.jsonにpre-commitフックを追加 * アップデートパッケージバージョンを修正します。 * Next.jsプロジェクトを初回セットアップ。 * マークダウンのlinting設定を追加する。 * 初回セットアップの詳細を修正 * カスタム辞書を追加します。 * 新しいNext.jsアプリを作成しました。 * pnpm dlx create-next-app frontend * Add renovate.json configuration file- Add renovate.json with schema and config extension * パッケージバージョンを修正します * delete root npm files * AWS Credentialアクションを追加する * Terraformの設定ファイルを追加します。 * Terraformの検証アクションを追加 * Terraform Planアクションを追加しました * Terraform Applyアクションを追加します。 * デプロイフローを更新 * 共有ローカル変数を追加します。 * 新規AWSプロバイダーを追加します。 * ノードのバージョンを 20.11.1 に更新 * amplifyのTerraformファイルを追加する。 * デプロイパイプラインを追加 * デプロイパイプラインのディレクトリを移動させました。 * .asdfrc にレガシーバージョンファイルを追加 * 新しいTerraformの無視ファイルを追加します。 * 新しいMarkdownルールを追加します。 * 初回コミットMITライセンスを追加 * 設定ファイルを追加する * テキスト設定ファイルを追加 * ファイルを更新してMarkdownルールを調整 * テキスト補正とルール検出を追加。 * カスタムワードを追加し、pre-commit設定を追加します。 * 追加: パッケージとライブラリをカスタムワードに追加 * add yamllint * デフォルト値をシングルクォートで囲む変更を実施する * 追加usecasesワードとamplifyモジュールの追加設定。 * Update .pre-commit-config.yaml file * update amplify module source path to use modules directory * 更新AWSアカウントIDを変更します。 * 更新プレフィックスを"tc"に変更する"prefix"を"pl"から"tc"に変更します * 共通のローカル変数を追加する * "不要なtfstate_bucket_nameローカル変数を削除" * ローカル変数のプレフィックスを"pl"から"tc"に変更 * 新しいAmplifyモジュールを追加します。 (Add new Amplify module) * gitignoreを更新する * amplifyのterraformバージョン5.43.0を追加します。 * amplifyモジュールにprefix変数を追加する。 * SSIAを追加します。 * インフラストラクチャのワークフローを追加します。 * set matrix とデプロイパイプラインを追加します。 * Add pre-commit workflow for code analysis * Auto Assignワークフローを追加する * ラベラーを追加します。 * コード所有者を追加する。 * 編集者設定と文書に関するGitHubのラベリングを追加 * Add custom word "kentaro" and update file patterns * アイコンを更新しました。 * 変更を適用します。 * tfファイルとパイプラインディレクトリの差分を確認する。 * ファイルを移動しました。 * デプロイパイプラインの参照を読み込む方法を変更 * ディレクトリパスをinfrastructureに変更する。 * ディレクトリ内の.tfファイルを調査する関数を修正 * デプロイパイプラインに"amplify"を追加 * 環境をsandboxにリネームします。 * 更新環境のAWS環境名を修正する。 * Terraformバージョンを取得するスクリプトを修正します。 * ブランチ名を更新する * Terraformバージョンを設定します。 * インフラのTerraformバージョンを表示するように変更します。 * バージョンを修正します。 * Add Terraform version 1.7.5 for sandbox environment * バージョン1.7.5から1.8.0に更新 * Terraformバージョンを1.7.5に変更する。 * バージョンの表記を修正します。 * バージョン1.7.5から1.8.0に更新します。
- Loading branch information
Showing
62 changed files
with
6,057 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
legacy_version_file = yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,128 @@ | ||
tailwindcss | ||
tqer | ||
pkgjs | ||
rushstack | ||
undici | ||
csstype | ||
estree | ||
globby | ||
minimatch | ||
ungap | ||
picomatch | ||
dequal | ||
unscopables | ||
postcss | ||
browserslist | ||
colorette | ||
streamsearch | ||
anymatch | ||
readdirp | ||
fsevents | ||
gopd | ||
esutils | ||
tapable | ||
arraybuffer | ||
tostringtag | ||
globalthis | ||
proto | ||
hasown | ||
weakref | ||
concat | ||
trimend | ||
trimstart | ||
axobject | ||
damerau | ||
estraverse | ||
fromentries | ||
groupby | ||
findlast | ||
toreversed | ||
tosorted | ||
matchall | ||
esrecurse | ||
regexpp | ||
humanwhocodes | ||
espree | ||
esquery | ||
graphemer | ||
imurmurhash | ||
jsonify | ||
levn | ||
optionator | ||
reusify | ||
keyv | ||
rimraf | ||
jackspeak | ||
minipass | ||
realpath | ||
wrappy | ||
bigints | ||
extglob | ||
getprototypeof | ||
isaacs | ||
cliui | ||
parseargs | ||
argparse | ||
minimist | ||
subtag | ||
yallist | ||
thenify | ||
msvc | ||
aashutoshrathi | ||
yocto | ||
callsites | ||
camelcase | ||
lilconfig | ||
cssesc | ||
picocolors | ||
envify | ||
iojs | ||
microtask | ||
isarray | ||
fullwidth | ||
eastasianwidth | ||
chokidar | ||
didyoumean | ||
jiti | ||
lilconfig | ||
thenify | ||
minimist | ||
punycode | ||
finalizationregistry | ||
weakref | ||
isarray | ||
weakmap | ||
weakset | ||
isexe | ||
terraformignore | ||
textlintcache | ||
markdownlint | ||
textlint | ||
shellcheck | ||
opentelemetry | ||
pify | ||
flatmap | ||
jridgewell | ||
tfstate | ||
RFFAK | ||
tfcmt | ||
esac | ||
subteam | ||
tflint | ||
oidc | ||
OIDC | ||
autoprefixer | ||
nodelib | ||
scandir | ||
fastq | ||
findlastindex | ||
apne | ||
chdir | ||
itkq | ||
usecases | ||
bobheadxi | ||
SSIA | ||
getline | ||
CODEOWNERS | ||
asdfrc | ||
kentaro |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# EditorConfig is awesome: https://EditorConfig.org | ||
|
||
# top-most EditorConfig file | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# global owners | ||
|
||
* @tqer39 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
name: AWS Credential | ||
|
||
description: AWS Credential | ||
|
||
inputs: | ||
oidc-iam-role: | ||
description: AWS の認証で使用する OIDC 認証用の ID Provider にアクセスするための IAM Role | ||
required: true | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Configure AWS credentials | ||
uses: aws-actions/configure-aws-credentials@v4 | ||
with: | ||
aws-region: ap-northeast-1 | ||
role-to-assume: ${{ inputs.oidc-iam-role }} | ||
|
||
- name: Get caller identity | ||
run: aws sts get-caller-identity | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
--- | ||
name: set matrix | ||
|
||
description: set matrix | ||
|
||
inputs: | ||
AWS_ENV_NAME: | ||
description: AWS の環境名 | ||
required: true | ||
BASE_BRANCH: | ||
description: ベースブランチ | ||
required: false | ||
default: develop | ||
|
||
outputs: | ||
matrix: | ||
description: Terraform の実行対象ディレクトリのリスト | ||
value: ${{ steps.set-matrix.outputs.matrix }} | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Check Pipeline Filtering | ||
if: | | ||
(github.event_name == 'pull_request' && github.event.pull_request.base.ref != 'main') | ||
|| (github.event_name == 'push' && !contains('["refs/heads/develop", "refs/heads/main"]', github.ref)) | ||
run: | | ||
echo "SHOULD_FILTER=true" >> $GITHUB_ENV | ||
shell: bash | ||
|
||
- name: Filter Pipeline | ||
if: env.SHOULD_FILTER == 'true' | ||
continue-on-error: true | ||
run: | | ||
# pull_request, push の一部は処理対象を絞る | ||
declare -a deploy_pipelines=($(cat ./.github/workflows/deploy_pipeline/${{ env.AWS_ENV_NAME }})) | ||
declare -a temp=() | ||
# ブランチ分岐時のベースブランチコミットハッシュから現在までの差分を取得する | ||
git_diffs=($(git diff --name-only --diff-filter=AM $(git merge-base HEAD origin/${{ inputs.BASE_BRANCH }})..HEAD)) | ||
git_diff_arr=$(printf "%s," "${git_diffs[@]}") | ||
for pipeline in "${deploy_pipelines[@]}"; do | ||
if ! ./.github/scripts/check_pipeline_differences.sh \ | ||
"infrastructure/environments/${{ env.AWS_ENV_NAME }}/${pipeline}" \ | ||
"$git_diff_arr" ; then | ||
echo "No changes in $pipeline" | ||
else | ||
# 処理対象のデプロイパイプラインを追加 | ||
temp+=("$pipeline") | ||
fi | ||
done | ||
joined_array=$(printf "\"%s\"," "${temp[@]}") | ||
echo "joined_array=$(echo "[${joined_array%,}]")" >> $GITHUB_ENV | ||
shell: bash | ||
|
||
- name: Apply To All Items | ||
if: env.SHOULD_FILTER != 'true' | ||
run: | | ||
# schedule, workflow_dispatch や 上記に該当しない pull_request, push の場合は全て処理対象とする | ||
declare -a deploy_pipelines=($(cat ./.github/workflows/deploy_pipeline/${{ env.AWS_ENV_NAME }})) | ||
joined_array=$(printf "\"%s\"," "${deploy_pipelines[@]}") | ||
echo "joined_array=$(echo "[${joined_array%,}]")" >> $GITHUB_ENV | ||
shell: bash | ||
|
||
- name: make values | ||
id: set-matrix | ||
run: | | ||
matrix=$(echo $joined_array | jq -c) | ||
if [ "$matrix" == "[\"\"]" ]; then | ||
joined_array='["_empty"]' | ||
fi | ||
echo "[debug] joined_array: ${joined_array}" | ||
echo "matrix=$(echo $joined_array | jq -c)" >> $GITHUB_OUTPUT | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
name: Setup terraform | ||
|
||
description: Setup Terraform | ||
|
||
inputs: | ||
working-directory: | ||
description: Terraform CLI 実行時のパス | ||
required: true | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Get current Terraform version | ||
run: | | ||
echo "TERRAFORM_VERSION=$(cat ./infrastructure/.terraform-version)" >> $GITHUB_ENV | ||
echo '--------------------------' | ||
echo $(cat ./infrastructure/.terraform-version) | ||
shell: bash | ||
|
||
- name: Setup Terraform | ||
uses: hashicorp/setup-terraform@v2 | ||
with: | ||
terraform_version: env.TERRAFORM_VERSION | ||
|
||
- name: Terraform Format | ||
run: terraform fmt -check -recursive -diff | ||
working-directory: ${{ inputs.working-directory }} | ||
shell: bash | ||
|
||
- name: Terraform Init | ||
run: terraform init -upgrade | ||
working-directory: ${{ inputs.working-directory }} | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
name: Terraform Apply | ||
|
||
description: Terraform Apply | ||
|
||
inputs: | ||
working-directory: | ||
description: Terraform CLI 実行時のパス | ||
required: true | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Terraform Apply | ||
run: terraform apply -auto-approve | ||
working-directory: ${{ inputs.working-directory }} | ||
shell: bash |
Oops, something went wrong.