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

Make build actions be run conditionally (especially docker build that requires secrets and fails on forks) #2714

Open
1 task done
woj-tek opened this issue Jun 26, 2024 · 0 comments

Comments

@woj-tek
Copy link
Contributor

woj-tek commented Jun 26, 2024

From my comment in #839

Could do docker.yml action be somehow modified and run/executed only if some env variable is set (or secret present)? Currently, after forking the repo (to create a PR) I got the action run as well and it fails as I don't have the secrets set... I think that conditional run would be better instead of pushing MB of data to docker hub each day?

I naively added if: github.repository == 'miniflux/v2' in my fork -- would that be sufficient (to make PR) or better solution would be required? (from what I read it's not possible to use conditions based on secrets - only on environment variables so using env.var would require changing main miniflux repo configuration)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant