Merge pull request #20 from HideyoshiNakazone/implements-deploy-via-dispatcher
Implements deploy via dispatcher
This commit is contained in:
9
.github/workflows/terraform.yml
vendored
9
.github/workflows/terraform.yml
vendored
@@ -43,3 +43,12 @@ jobs:
|
||||
- name: Terraform Apply
|
||||
if: github.event_name == 'push'
|
||||
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}}" }'
|
||||
15
README.md
Normal file
15
README.md
Normal file
@@ -0,0 +1,15 @@
|
||||
<div align="center">
|
||||
<a href="https://github.com/HideyoshiNakazone/hideyoshi.com">
|
||||
<img src="https://drive.google.com/uc?export=view&id=1ka1kTMcloX_wjAlKLET9VoaRTyRuGmxQ" width="100" height="100" allow="autoplay"\>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
# 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)
|
||||
|
||||
Reference in New Issue
Block a user