Skip to content

Commit

Permalink
[NOD-473] fix: updated and refactored action
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea-deri committed Sep 19, 2023
1 parent 48c15f4 commit 2dfe851
Show file tree
Hide file tree
Showing 3 changed files with 111 additions and 15 deletions.
83 changes: 83 additions & 0 deletions .identity/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 6 additions & 11 deletions .identity/00_data.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,11 @@ data "azurerm_key_vault_secret" "key_vault_bot_token" {
key_vault_id = data.azurerm_key_vault.key_vault.id
}

data "azurerm_resource_group" "nodo_re_rg" {
name = "pagopa-${var.env_short}-${local.location_short}-nodo-re-to-datastore-rg"
data "azurerm_key_vault_secret" "key_vault_slack_webhook_url" {
name = "slack-webhook-url"
key_vault_id = data.azurerm_key_vault.domain_key_vault.id
}

#data "azurerm_key_vault_secret" "key_vault_cucumber_token" {
# name = "cucumber-token"
# key_vault_id = data.azurerm_key_vault.key_vault.id
#}

#data "azurerm_key_vault_secret" "key_vault_integration_test_subkey" {
# name = "integration-test-subkey"
# key_vault_id = data.azurerm_key_vault.key_vault.id
#}
data "azurerm_resource_group" "nodo_re_rg" {
name = "pagopa-${var.env_short}-${local.location_short}-nodo-re-to-datastore-rg"
}
26 changes: 22 additions & 4 deletions .identity/03_github_environment.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ locals {
env_secrets = {
"CLIENT_ID" : module.github_runner_app.application_id,
"TENANT_ID" : data.azurerm_client_config.current.tenant_id,
"SUBSCRIPTION_ID" : data.azurerm_subscription.current.subscription_id,
"ISSUER_RANGE_TABLE" : "${local.prefix}${var.env_short}${local.location_short}${local.domain}saissuerrangetable",
# "SUBKEY" : data.azurerm_key_vault_secret.key_vault_integration_test_subkey.value,
"SUBSCRIPTION_ID" : data.azurerm_subscription.current.subscription_id
}
env_variables = {
"CONTAINER_APP_ENVIRONMENT_NAME" : local.container_app_environment.name,
Expand All @@ -38,7 +36,7 @@ locals {
repo_secrets = {
"SONAR_TOKEN" : data.azurerm_key_vault_secret.key_vault_sonar.value,
"BOT_TOKEN_GITHUB" : data.azurerm_key_vault_secret.key_vault_bot_token.value,
# "CUCUMBER_PUBLISH_TOKEN" : data.azurerm_key_vault_secret.key_vault_cucumber_token.value,
"SLACK_WEBHOOK_URL": data.azurerm_key_vault_secret.key_vault_slack_webhook_url.value
}
}

Expand Down Expand Up @@ -79,3 +77,23 @@ resource "github_actions_secret" "repo_secrets" {
plaintext_value = each.value
}

############
## Labels ##
############
resource "github_issue_label" "breaking_change" {
repository = local.github.repository
name = "breaking-change"
color = "FF0000"
}

resource "github_issue_label" "new_release" {
repository = local.github.repository
name = "new-release"
color = "FFFF00"
}

resource "github_issue_label" "ignore_for_release" {
repository = local.github.repository
name = "ignore-for-release"
color = "008000"
}

0 comments on commit 2dfe851

Please sign in to comment.