-
Notifications
You must be signed in to change notification settings - Fork 155
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
daa2d69
commit 93ef45f
Showing
6 changed files
with
27 additions
and
172 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
This file was deleted.
Oops, something went wrong.
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,55 +1,52 @@ | ||
terraform { | ||
required_providers { | ||
oci = { source = "chainguard-dev/oci" } | ||
} | ||
} | ||
|
||
variable "target_repository" { | ||
description = "The docker repo into which the image and attestations should be published." | ||
} | ||
|
||
module "php-versions" { | ||
source = "../../tflib/versions/" | ||
package = "php" | ||
source = "../../tflib/versions" | ||
} | ||
|
||
module "config" { | ||
source = "./config" | ||
php_version = [for k, v in module.php-versions.versions : k if v.is_latest][0] | ||
source = "./config" | ||
} | ||
|
||
module "latest" { | ||
source = "../../tflib/publisher" | ||
config = module.config.config | ||
main_package = "wordpress" | ||
name = basename(path.module) | ||
source = "../../tflib/publisher" | ||
target_repository = var.target_repository | ||
config = module.config.config | ||
} | ||
|
||
module "latest-dev" { | ||
source = "../../tflib/publisher" | ||
config = module.config.config-dev | ||
main_package = "wordpress" | ||
name = basename(path.module) | ||
source = "../../tflib/publisher" | ||
target_repository = var.target_repository | ||
config = module.config.config-dev | ||
} | ||
|
||
module "test-latest" { | ||
source = "./tests" | ||
digest = module.latest.image_ref | ||
source = "./tests" | ||
} | ||
|
||
module "test-latest-dev" { | ||
source = "./tests" | ||
digest = module.latest-dev.image_ref | ||
source = "./tests" | ||
} | ||
|
||
resource "oci_tag" "latest" { | ||
module "tagger" { | ||
depends_on = [module.test-latest] | ||
digest_ref = module.latest.image_ref | ||
tag = "latest" | ||
source = "../../tflib/tagger" | ||
tags = module.latest.latest_tag_map | ||
} | ||
|
||
resource "oci_tag" "latest-dev" { | ||
module "tagger-dev" { | ||
depends_on = [module.test-latest-dev] | ||
digest_ref = module.latest-dev.image_ref | ||
tag = "latest-dev" | ||
source = "../../tflib/tagger" | ||
tags = module.latest-dev.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 |
---|---|---|
|
@@ -13,3 +13,4 @@ keywords: | |
tier: APPLICATION | ||
aliases: | ||
- wordpress:latest | ||
public: true |
This file was deleted.
Oops, something went wrong.