Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update github-action #1

Merged
merged 6 commits into from
Jan 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions .github/workflows/readme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# - name: 'Slack Notification'
# uses: clouddrove/action-slack@v2
# with:
# status: ${{ job.status }}
# fields: repo,author
# author_name: 'CloudDrove'
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # required
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_TERRAFORM }} # required
# if: always()
- name: 'Slack Notification'
uses: clouddrove/action-slack@v2
with:
status: ${{ job.status }}
fields: repo,author
author_name: 'CloudDrove'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # required
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_TERRAFORM }} # required
if: always()
4 changes: 2 additions & 2 deletions .github/workflows/static-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ jobs:
- ${{ needs.versionExtract.outputs.minVersion }}
- ${{ needs.versionExtract.outputs.maxVersion }}
directory:
- examples/

- examples/mysql-flexible-server
- examples/mysql-flexible-server-replication
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down
30 changes: 30 additions & 0 deletions README.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,33 @@ usage: |-
size_gb = "20"
}
```
##for mysql replication
```hcl
module "flexible-mysql" {
source = "clouddrove/flexible-mysql/azure"
name = "app"
environment = "test"
label_order = ["environment", "name"]
main_rg_name = data.azurerm_resource_group.main.name
resource_group_name = module.resource_group.resource_group_name
location = module.resource_group.resource_group_location
virtual_network_id = module.vnet.vnet_id[0]
delegated_subnet_id = module.subnet.default_subnet_id[0]
mysql_version = "8.0.21"
mysql_server_name = "testmysqlserver"
zone = "1"
admin_username = "mysqlusern"
admin_password = "ba5yatgfgfhdsvvc6A3ns2lu4gqzzc"
sku_name = "GP_Standard_D8ds_v4"
db_name = "maindb"
charset = "utf8"
collation = "utf8_unicode_ci"
server_configuration_name = "interactive_timeout"
auto_grow_enabled = true
iops = 360
size_gb = "20"
existing_private_dns_zone = true
existing_private_dns_zone_id = data.azurerm_private_dns_zone.main.id
existing_private_dns_zone_name = data.azurerm_private_dns_zone.main.name
}
```
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module "resource_group" {
module "vnet" {
source = "clouddrove/vnet/azure"
version = "1.0.0"
name = "app2"
name = "app"
environment = "test"
label_order = ["name", "environment"]
resource_group_name = module.resource_group.resource_group_name
Expand All @@ -27,7 +27,7 @@ module "vnet" {
module "subnet" {
source = "clouddrove/subnet/azure"
version = "1.0.1"
name = "app2"
name = "app"
environment = "test"
label_order = ["name", "environment"]
resource_group_name = module.resource_group.resource_group_name
Expand Down Expand Up @@ -63,7 +63,7 @@ data "azurerm_private_dns_zone" "main" {
module "flexible-mysql" {
depends_on = [module.resource_group, module.vnet, data.azurerm_resource_group.main]
source = "../.."
name = "app2"
name = "app"
environment = "test"
label_order = ["name", "environment"]
main_rg_name = data.azurerm_resource_group.main.name
Expand Down