Skip to content

Commit

Permalink
fix logic error when in GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
Emilgardis committed Jun 13, 2022
1 parent 8ca5090 commit b063862
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xtask/src/build_docker_image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,15 +151,15 @@ pub fn build_docker_image(
docker_build.arg(".");

if force || !push || std::env::var("GITHUB_ACTIONS").is_ok() {
docker_build.run(verbose)?;
//docker_build.run(verbose)?;
} else {
docker_build.print_verbose(true);
}
if std::env::var("GITHUB_ACTIONS").is_ok() {
println!("::set-output name=image::{}", &tags[0])
}
}
if (std::env::var("GITHUB_ACTIONS").is_ok() || !force) && push {
if !(std::env::var("GITHUB_ACTIONS").is_ok() || !push || force) {
panic!("refusing to push, use --force to override");
}
Ok(())
Expand Down

0 comments on commit b063862

Please sign in to comment.