Skip to content

Commit

Permalink
Add contributor to app cache to gitrunner
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard87 committed Dec 19, 2024
1 parent 160f303 commit 2c6a126
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 10 deletions.
1 change: 1 addition & 0 deletions .github/workflows/clean-cache-registry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
purge:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
target:
- name: "dev"
Expand Down
4 changes: 4 additions & 0 deletions terraform/subscriptions/s940/c2/common/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,10 @@ module "radix_id_gitrunner" {
role = "Contributor"
scope_id = "/subscriptions/${module.config.subscription}/resourceGroups/${data.azurerm_virtual_network.this.resource_group_name}"
}
app_registry_contributor = {
role = "Contributor"
scope_id = '/subscriptions/${module.config.subscription}/resourceGroups/common/providers/Microsoft.ContainerRegistry/registries/radix${module.config.environment}app'
}
}
federated_credentials = {
radix-id-gitrunner = {
Expand Down
4 changes: 4 additions & 0 deletions terraform/subscriptions/s940/prod/common/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,10 @@ module "radix_id_gitrunner" {
issuer = "https://token.actions.githubusercontent.com"
subject = "repo:equinor/radix-platform:environment:${module.config.environment}"
}
app_registry_contributor = {
role = "Contributor"
scope_id = '/subscriptions/${module.config.subscription}/resourceGroups/common/providers/Microsoft.ContainerRegistry/registries/radixprodapp' # TODO: Replace resource name when fixed
}
}
}

Expand Down
4 changes: 4 additions & 0 deletions terraform/subscriptions/s941/dev/common/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,10 @@ module "radix_id_gitrunner" {
role = "Contributor"
scope_id = "/subscriptions/${module.config.subscription}/resourceGroups/${data.azurerm_virtual_network.this.resource_group_name}"
}
app_registry_contributor = {
role = "Contributor"
scope_id = '/subscriptions/${module.config.subscription}/resourceGroups/common/providers/Microsoft.ContainerRegistry/registries/radix${module.config.environment}app'
}
}
federated_credentials = {
radix-id-gitrunner = {
Expand Down
24 changes: 14 additions & 10 deletions terraform/subscriptions/s941/playground/common/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -105,52 +105,56 @@ module "radix-id-acr-workflows" {
name = "radix-cluster-cleanup-release"
issuer = "https://token.actions.githubusercontent.com"
subject = "repo:equinor/radix-cluster-cleanup:ref:refs/heads/release"
},
}
radix-cicd-canary-release = {
name = "radix-cicd-canary-release"
issuer = "https://token.actions.githubusercontent.com"
subject = "repo:equinor/radix-cicd-canary:ref:refs/heads/release"
},
}
radix-vulnerability-scanner-release = {
name = "radix-vulnerability-scanner-release"
issuer = "https://token.actions.githubusercontent.com"
subject = "repo:equinor/radix-vulnerability-scanner:ref:refs/heads/release"
},
}
radix-image-builder-release = {
name = "radix-image-builder-release"
issuer = "https://token.actions.githubusercontent.com"
subject = "repo:equinor/radix-image-builder:ref:refs/heads/release"
},
}
radix-tekton-release = {
name = "radix-tekton-release"
issuer = "https://token.actions.githubusercontent.com"
subject = "repo:equinor/radix-tekton:ref:refs/heads/release"
},
}
radix-operator-master = {
name = "radix-operator-master"
issuer = "https://token.actions.githubusercontent.com"
subject = "repo:equinor/radix-operator:ref:refs/heads/master"
},
}
radix-operator-release = {
name = "radix-operator-release"
issuer = "https://token.actions.githubusercontent.com"
subject = "repo:equinor/radix-operator:ref:refs/heads/release"
},
}
radix-velero-plugin-release = {
name = "radix-velero-plugin-release"
issuer = "https://token.actions.githubusercontent.com"
subject = "repo:equinor/radix-velero-plugin:ref:refs/heads/release"
},
}
radix-job-scheduler-release = {
name = "radix-job-scheduler-release"
issuer = "https://token.actions.githubusercontent.com"
subject = "repo:equinor/radix-job-scheduler:ref:refs/heads/release"
},
}
radix-buildkit-builder-release = {
name = "radix-buildkit-builder-release"
issuer = "https://token.actions.githubusercontent.com"
subject = "repo:equinor/radix-buildkit-builder:ref:refs/heads/release"
},
}
app_registry_contributor = {
role = "Contributor"
scope_id = '/subscriptions/${module.config.subscription}/resourceGroups/common/providers/Microsoft.ContainerRegistry/registries/radix${module.config.environment}app'
}
}
}

Expand Down

0 comments on commit 2c6a126

Please sign in to comment.