From 90ec88fadc1ae9a264679cf8c6628fe9624eb67a Mon Sep 17 00:00:00 2001 From: twerthi Date: Tue, 9 Jul 2024 16:41:31 -0700 Subject: [PATCH] Adding authentication to GHCR feed --- .../octopus-space-standards-terraform/external-feeds.tf | 2 ++ .../octopus-space-standards-terraform/variables.tf | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/octopus-samples-instances/octopus-space-standards-terraform/external-feeds.tf b/octopus-samples-instances/octopus-space-standards-terraform/external-feeds.tf index d1a07d1..030aa35 100644 --- a/octopus-samples-instances/octopus-space-standards-terraform/external-feeds.tf +++ b/octopus-samples-instances/octopus-space-standards-terraform/external-feeds.tf @@ -26,4 +26,6 @@ resource "octopusdeploy_feed" "ghcr" { name = "GitHub Container Registry Feed TF" feed_type = "Docker" feed_uri = "https://ghcr.io" + username = var.octopus_feed_ghcr_username + password = var.octopus_feed_ghcr_password } \ No newline at end of file diff --git a/octopus-samples-instances/octopus-space-standards-terraform/variables.tf b/octopus-samples-instances/octopus-space-standards-terraform/variables.tf index e8be9ac..3392f28 100644 --- a/octopus-samples-instances/octopus-space-standards-terraform/variables.tf +++ b/octopus-samples-instances/octopus-space-standards-terraform/variables.tf @@ -207,4 +207,13 @@ variable "octopus_feed_dockerhub_username" { variable "octopus_feed_dockerhub_password" { type = string sensitive = true +} + +variable "octopus_feed_ghcr_username" { + type = string +} + +variable "octpopus_feed_ghcr_password" { + type = string + sensitive = true } \ No newline at end of file