fix: Prevent certain builds from running when the PR is from a fork

This commit is contained in:
Gerald Pinder 2024-12-08 16:53:07 -05:00
parent 273d8795b2
commit 4910292fb9
3 changed files with 11 additions and 71 deletions

View file

@ -8,7 +8,7 @@ use std::{
use blue_build_utils::{
cmd,
constants::{BB_BUILDKIT_CACHE_GHA, CONTAINER_FILE, DOCKER_HOST},
constants::{BB_BUILDKIT_CACHE_GHA, CONTAINER_FILE, DOCKER_HOST, GITHUB_ACTIONS},
credentials::Credentials,
string_vec,
};
@ -340,7 +340,9 @@ impl BuildDriver for DockerDriver {
opts.compression
),
);
} else {
// We don't want to load the image into docker as it will double disk usage
} else if env::var(GITHUB_ACTIONS).is_err() {
cmd!(command, "--load");
}
images