Skip to content

Commit

Permalink
Introduce Quay integration
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Oct 15, 2024
1 parent 3e0eee3 commit 5f78282
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 16 deletions.
55 changes: 39 additions & 16 deletions terraform-scripts/.terraform.lock.hcl

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

12 changes: 12 additions & 0 deletions terraform-scripts/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ terraform {
source = "integrations/github"
version = "~> 6.0"
}
quay = {
source = "enthought/quay"
version = "~> 0.5.1"
}
}

backend "remote" {
Expand All @@ -19,6 +23,10 @@ terraform {

provider "github" {}

provider "quay" {
url = "https://quay.io"
}

# Retrieve information about the currently (PAT) authenticated user
data "github_user" "self" {
username = ""
Expand All @@ -29,6 +37,10 @@ data "github_team" "quarkiverse_members" {
slug = "quarkiverse-members"
}

data "quay_organization" "quarkiverse" {
name = "quarkiverse"
}

locals {
# Application IDs installed in the Quarkiverse organization
# These applications are enabled on a per-repository basis
Expand Down
8 changes: 8 additions & 0 deletions terraform-scripts/quarkus-playpen.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,11 @@ resource "github_team_membership" "quarkus_playpen" {
username = each.value
role = "maintainer"
}

# Create quay.io repository
resource "quay_repository" "quarkus_playpen" {
name = "quarkus-playpen"
description = "Live local development on a deployed k8s service"
visibility = "public"
namespace = data.quay_organization.quarkiverse.name
}

0 comments on commit 5f78282

Please sign in to comment.