diff --git a/.github/workflows/terraform.yml b/.github/workflows/terraform.yml index 58a3e15..2935718 100644 --- a/.github/workflows/terraform.yml +++ b/.github/workflows/terraform.yml @@ -42,4 +42,13 @@ jobs: # Note: It is recommended to set up a required "strict" status check in your repository for "Terraform Cloud". See the documentation on "strict" required status checks for more information: https://help.github.com/en/github/administering-a-repository/types-of-required-status-checks - name: Terraform Apply if: github.event_name == 'push' - run: terraform apply -auto-approve -input=false \ No newline at end of file + run: terraform apply -auto-approve -input=false + + - name: Deploy Project via Dispatcher + env: + DISPATCHER_EVENT: ${{env.TF_WORKSPACE == 'prod' && 'deploy-prod' || 'deploy-staging'}} + run: | + curl -X POST https://api.github.com/repos/HideyoshiNakazone/infra-hideyoshi.com/dispatches \ + -H 'Accept: application/vnd.github.everest-preview+json' \ + -u ${{ secrets.ACTIONS_KEY }} \ + --data '{"event_type": "${{env.DISPATCHER_EVENT}}" }' \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..3dda759 --- /dev/null +++ b/README.md @@ -0,0 +1,15 @@ +
+ + + +
+ +# terraform-hideyoshi.com + +Made using Terraform, this project was made for building the infrastructure of the [hideyoshi.com project](https://github.com/HideyoshiNakazone/hideyoshi.com). + +All code in this repo is distributed freely by the GPLv3 License. +## Authors + +- [@HideyoshiNakazone](https://github.com/HideyoshiNakazone) +