fix: Prevent certain builds from running when the PR is from a fork
This commit is contained in:
parent
273d8795b2
commit
4910292fb9
3 changed files with 11 additions and 71 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue