-
Notifications
You must be signed in to change notification settings - Fork 3
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
Fetch docker names without github token #555
Conversation
…, token not needed
📚 Documentation |
would it be easy to make the workflow fail if no docker files were found? just as a small safety net |
As my first commit experience tells - it will fail anyway in the next step when it will try to fetch the docker. But I'll take a look now. |
Do we also have to adapt the docker-workflow? |
I do not think so. This will not be executed at |
It should be triggered if anything related to the docker image (toml file or the docker file itself) changes, shouldn't it? |
pushing the test docker images cannot work from forks. so release and changes to docker will always be done on the main repo. |
we coulld change the docker action to also use sed (or change it here to also use jq), as on both pretty much the same step is done to obtain the imagenames, but with slightly different commands.. |
The sed here is not really replaceable here with jq or jq in later steps is replaceable with sed. For the I would change the |
would be good to discuss then in a meeting how we envisage the new workflow |
…names at one line
Quick question: If I create a fork and then a PR to main. The PR gets approved and I merge the PR into main. Currently this would trigger our docker-pipeline as "push to main". This will run on main and hence the github token should be available, shouldn't it? |
I have expected it to do so. Only after I also think that right now there is a special token generated and placed in secrets due to that API request. After this pull-request It can be deleted if we use a default |
I am looking forward to getting this PR merged -- and then trying it out. I don't think there is a good way to test if this really fixes all issues with forks. It looks like it should work ;) |
I can do it with my "mock" repo or you can just create an own if you wish. Or you can run the workflow locally with the |
This fix in combination with #537 allows user to send pull requests from forks and all workflows be executed. The issue before was the fact the the GH REST API request required the secret token for fetch of the docker images list.
Now this is done matching the filenames in
docker
directory.