Skip to content

Commit

Permalink
prevent custom images (#217)
Browse files Browse the repository at this point in the history
  • Loading branch information
joedixon authored Apr 14, 2023
1 parent 40705fd commit 437011a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/BuildProcess/BuildContainerImage.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public function validateDockerFile($environment, $runtime)

if (! Str::contains($contents, 'laravelphp/vapor:php')) {
// Custom image...
return true;
return false;
}

if ($runtime === 'docker') {
Expand Down
8 changes: 4 additions & 4 deletions tests/BuildContainerImageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,12 @@ public function runtimeProvider()
[
'docker-arm',
'FROM custom/image',
true,
false,
],
[
'docker',
'FROM custom/image',
true,
false,
],
[
'docker',
Expand All @@ -133,12 +133,12 @@ public function runtimeProvider()
[
'docker',
'FROM custom/vapor:php82-arm',
true,
false,
],
[
'docker-arm',
'FROM custom/vapor:php82',
true,
false,
],

// End of line tests...
Expand Down

0 comments on commit 437011a

Please sign in to comment.