Skip to content

Commit

Permalink
ci(reports): should ignore unknown/unknown platform rows (#616)
Browse files Browse the repository at this point in the history
Same as rocker-org/devcontainer-images#52

Perhaps due to buildx update, even images that should not be shown are
being shown as multi-platform built.
  • Loading branch information
eitsupi committed Mar 16, 2023
1 parent 11323bc commit 1e02dfa
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions build/reports/template.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,15 @@ df_digest <- tryCatch(
dplyr::filter(!(name == "Name:" & dplyr::lead(name) != "Platform:")) |>
dplyr::mutate(id = (row_number() + 1) %/% 2) |>
tidyr::pivot_wider(id_cols = id) |>
dplyr::select(platform = `Platform:`, RepoDigests = `Name:`),
dplyr::select(platform = `Platform:`, RepoDigests = `Name:`) |>
dplyr::filter(stringr::str_starts(platform, "linux/")),
error = function(e) NULL
)
if (!is.null(df_digest)) {
if (!is.null(df_digest) && nrow(df_digest) > 0) {
cat(
"### Platforms\n\n",
"This image was created by a multi-architecture build. The digests for each platform are as follows."
"The digests for each platform are as follows."
)
df_digest |>
Expand Down

0 comments on commit 1e02dfa

Please sign in to comment.