Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: better display in CI + introduce 'ci' context #293

Merged
merged 1 commit into from Mar 15, 2024
Merged

ci: better display in CI + introduce 'ci' context #293

merged 1 commit into from Mar 15, 2024

Conversation

lyrixx
Copy link
Member

@lyrixx lyrixx commented Mar 15, 2024

No description provided.

@@ -287,7 +287,6 @@ function create_default_context(): Context
'power_shell' => false,
'user_id' => posix_geteuid(),
'root_dir' => \dirname(__DIR__),
'env' => $_SERVER['CI'] ?? false ? 'ci' : 'dev',
Copy link
Member Author

@lyrixx lyrixx Mar 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does not make sens to have a "env" context when castor already has one.

$data,
pty: Process::isPtySupported(),
environment: [
'BUILDKIT_PROGRESS' => 'plain',
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's gather all env var here, to simplify CI configuration

])
->withEnvironment([
'BUILDKIT_PROGRESS' => 'plain',
'COMPOSE_ANSI' => 'never',
Copy link
Member Author

@lyrixx lyrixx Mar 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The output is cleaner with this option in this CI. And it's much more digest

but, it does not work on github 😭

edit: hooo, pretty sure docker version on GH is too old 🤯

Let's keep it for now...

@lyrixx lyrixx merged commit 008c5af into main Mar 15, 2024
4 checks passed
@lyrixx lyrixx deleted the ci branch March 15, 2024 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants