Skip to content

Commit

Permalink
automated commit
Browse files Browse the repository at this point in the history
Signed-off-by: Public copy <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] committed Nov 20, 2024
1 parent badaaa7 commit 3e92e9d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions images/gitlab-exporter/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ module "versioned" {
for_each = module.versions.versions
main_package = replace(each.value.main, "gitlab-cng", "gitlab-exporter")
name = basename(path.module)
origin_package = each.value.main
source = "../../tflib/publisher"
target_repository = var.target_repository
update-repo = each.value.is_latest
Expand Down
1 change: 1 addition & 0 deletions images/gitlab-shell/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ module "versioned" {
for_each = module.versions.versions
main_package = replace(each.value.main, "gitlab-cng", "gitlab-shell")
name = basename(path.module)
origin_package = each.value.main
source = "../../tflib/publisher"
target_repository = var.target_repository
update-repo = each.value.is_latest
Expand Down
7 changes: 7 additions & 0 deletions tflib/publisher/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ variable "main_package" {
description = "If set, this determines which package in the image will be used to generate version tags."
}

variable "origin_package" {
type = string
description = "This determines which is the origin package in the image when it differs from the main package. e.g. kubectl origin package is kubernetes."
default = ""
}

// Note: unused
variable "eol" {
type = bool
Expand Down Expand Up @@ -78,6 +84,7 @@ locals {
"org.opencontainers.image.url" : "https://images.chainguard.dev/directory/image/${var.name}/overview",
"org.opencontainers.image.source" : "https://github.com/chainguard-images/images/tree/main/images/${var.name}",
"org.opencontainers.image.vendor" : "Chainguard",
"dev.chainguard.package.main" : (var.origin_package == "" ? var.main_package : var.origin_package),
},
},
)
Expand Down

0 comments on commit 3e92e9d

Please sign in to comment.