2 Commits

Author SHA1 Message Date
alexandre.pires 33cccdf396 Fix sectool installation step by removing version check
Terraform Scaleway IAC Validate on Pull Request / iac-validate (pull_request) Failing after 1m37s
2026-07-06 21:14:24 +02:00
alexandre.pires 32da5410bc Added the a13labs namespace to scaleway
Terraform Scaleway IAC Validate on Pull Request / iac-validate (pull_request) Failing after 54s
2026-07-05 23:22:32 +02:00
4 changed files with 41 additions and 3 deletions
-1
View File
@@ -13,4 +13,3 @@ runs:
unzip -o /tmp/sectool.zip -d /usr/local/bin unzip -o /tmp/sectool.zip -d /usr/local/bin
rm /tmp/sectool.zip rm /tmp/sectool.zip
chmod +x /usr/local/bin/sectool chmod +x /usr/local/bin/sectool
sectool version
+22
View File
@@ -96,3 +96,25 @@ resource "scaleway_iam_api_key" "gitea_app_api" {
application_id = scaleway_iam_application.gitea_app.id application_id = scaleway_iam_application.gitea_app.id
description = "gitea access API key" description = "gitea access API key"
} }
resource "scaleway_iam_application" "ci_app" {
name = "ci_app"
}
resource "scaleway_iam_policy" "registry_full_access" {
name = "CI Registry full access policy"
description = "Gives CI app full access to container registry in project"
application_id = scaleway_iam_application.ci_app.id
rule {
project_ids = [data.scaleway_account_project.default.id]
permission_set_names = [
"RegistryFullAccess",
]
}
}
resource "scaleway_iam_api_key" "ci_app_api" {
application_id = scaleway_iam_application.ci_app.id
description = "CI app API key for registry push"
}
+17
View File
@@ -49,3 +49,20 @@ output "gitea_bucket_name" {
description = "The name of the Gitea bucket." description = "The name of the Gitea bucket."
value = scaleway_object_bucket.gitea.name value = scaleway_object_bucket.gitea.name
} }
output "registry_endpoint" {
description = "The endpoint of the a13labs container registry."
value = scaleway_registry_namespace.a13labs.endpoint
}
output "ci_app_api_access_key" {
description = "The access key for the CI app API."
value = scaleway_iam_api_key.ci_app_api.access_key
sensitive = true
}
output "ci_app_api_secret_key" {
description = "The secret key for the CI app API."
value = scaleway_iam_api_key.ci_app_api.secret_key
sensitive = true
}
+1 -1
View File
@@ -1,5 +1,5 @@
resource "scaleway_registry_namespace" "a13labs" { resource "scaleway_registry_namespace" "a13labs" {
name = "a13labs" name = "a13labs"
description = "A13Labs container registry" description = "A13Labs container registry"
is_public = false is_public = true
} }