-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Public copy <41898282+github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
b8eedb0
commit daa2d69
Showing
12 changed files
with
46 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,26 @@ | ||
module "config" { | ||
extra_packages = ["k3s", "containerd-shim-runc-v2~1"] | ||
source = "./config" | ||
extra_packages = ["k3s"] | ||
} | ||
|
||
module "latest" { | ||
source = "../../tflib/publisher" | ||
name = basename(path.module) | ||
target_repository = var.target_repository | ||
config = module.config.config | ||
build-dev = true | ||
main_package = "k3s" | ||
config = module.config.config | ||
extra_dev_packages = ["bash-completion"] | ||
main_package = "k3s" | ||
name = basename(path.module) | ||
source = "../../tflib/publisher" | ||
target_repository = var.target_repository | ||
} | ||
|
||
module "test-latest" { | ||
source = "./tests" | ||
digest = module.latest.image_ref | ||
source = "./tests" | ||
} | ||
|
||
module "tagger" { | ||
source = "../../tflib/tagger" | ||
depends_on = [module.test-latest] | ||
tags = { | ||
"latest" : module.latest.image_ref, | ||
"latest-dev" : module.latest.dev_ref, | ||
} | ||
source = "../../tflib/tagger" | ||
tags = module.latest.latest_tag_map | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
variable "target_repository" { | ||
description = "The docker repo into which the image and attestations should be published." | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,4 @@ keywords: | |
tier: APPLICATION | ||
aliases: | ||
- rancher/k3s:latest | ||
public: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,26 @@ | ||
module "config-static" { | ||
source = "./config" | ||
extra_packages = ["k3s-static"] | ||
source = "./config" | ||
} | ||
|
||
module "latest-static" { | ||
source = "../../tflib/publisher" | ||
name = basename(path.module) | ||
target_repository = "${var.target_repository}-static" | ||
config = module.config-static.config | ||
build-dev = true | ||
main_package = "k3s-static" | ||
config = module.config-static.config | ||
extra_dev_packages = ["bash-completion"] | ||
main_package = "k3s-static" | ||
name = basename(path.module) | ||
source = "../../tflib/publisher" | ||
target_repository = "${var.target_repository}-static" | ||
} | ||
|
||
# Statically linked checks are performed at the package level, so just verify | ||
# the same functionality as the regular image here. | ||
module "test-latest-static" { | ||
source = "./tests" | ||
digest = module.latest-static.image_ref | ||
source = "./tests" | ||
} | ||
|
||
module "tagger-static" { | ||
source = "../../tflib/tagger" | ||
depends_on = [module.test-latest-static] | ||
tags = { | ||
"latest" : module.latest-static.image_ref, | ||
"latest-dev" : module.latest-static.dev_ref, | ||
} | ||
source = "../../tflib/tagger" | ||
tags = module.latest-static.latest_tag_map | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,4 @@ data "oci_exec_test" "test" { | |
digest = var.digest | ||
script = "${path.module}/smoke.sh" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters