check right thing for empty

This commit is contained in:
mbecker20
2024-07-01 03:12:22 -07:00
parent b143f42363
commit 55bac0dd13
2 changed files with 3 additions and 3 deletions

View File

@@ -264,7 +264,7 @@ impl Resolve<RunBuild, (User, Update)> for State {
.join("\n"),
);
}
if !secret_replacers.is_empty() {
if !secret_replacers_for_log.is_empty() {
update.push_simple_log(
"interpolate core secrets",
secret_replacers_for_log

View File

@@ -161,10 +161,10 @@ pub struct BuildConfig {
/// These values remain hidden in the final image by using
/// docker secret mounts. See `<https://docs.docker.com/build/building/secrets>`.
///
/// To use the values, add commands like this in the Dockerfile:
/// The values can be used in RUN commands:
/// ```
/// RUN --mount=type=secret,id=SECRET_KEY \
/// SECRET_VALUE=$(cat /run/secrets/SECRET_KEY) ...
/// SECRET_KEY=$(cat /run/secrets/SECRET_KEY) ...
/// ```
#[serde(
default,