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

Ability to continue if secret is not found #3262

Open
greaka opened this issue Sep 19, 2023 · 2 comments
Open

Ability to continue if secret is not found #3262

greaka opened this issue Sep 19, 2023 · 2 comments
Labels
type:enhancement Small feature requests / adjustments

Comments

@greaka
Copy link

greaka commented Sep 19, 2023

It's not currently possible to do a RUN --secret MY_OPTIONAL_SECRET echo "I would like to continue running even if $MY_OPTIONAL_SECRET is missing

--- original request below ---

Does existing documentation exist?
https://docs.earthly.dev/docs/guides/build-args

Request
For a few weeks now, I'm trying to find a way to not fail a build when a secret is not available. The secret not existing is specifically handled in the build step and is expected for external PRs. How do I make this work within Earthly?

@greaka greaka added the type:documentation Improvements or additions to documentation label Sep 19, 2023
@alexcb
Copy link
Contributor

alexcb commented Sep 19, 2023

related to #1475

@alexcb alexcb added type:enhancement Small feature requests / adjustments and removed type:documentation Improvements or additions to documentation labels Sep 19, 2023
@alexcb
Copy link
Contributor

alexcb commented Sep 19, 2023

It's not currently possible to continue if a secret is not found; however it would be a nice enhancement.

@alexcb alexcb changed the title Prevent failing when secret not available Ability to continue if secret is not found Sep 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:enhancement Small feature requests / adjustments
Projects
Status: No status
Development

No branches or pull requests

2 participants