Skip to content

Commit aa7f7d8

Browse files
committed
build: add proper validation for CF_SITEKEY variable
1 parent d153f95 commit aa7f7d8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docker-bake.hcl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ variable "CF_SITEKEY" {
22
default = "$CF_SITEKEY"
33

44
validation {
5-
condition = CF_SITEKEY != ""
6-
error_message = "CF_SITEKEY environment variable not set"
5+
condition = CF_SITEKEY != "" && CF_SITEKEY != "$CF_SITEKEY"
6+
error_message = "CF_SITEKEY environment variable not set correctly"
77
}
88
}
99

0 commit comments

Comments
 (0)