-
Notifications
You must be signed in to change notification settings - Fork 15
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
RWIP: docker workflow refactor GHA #730
Conversation
As you mentioned as a side effect in aiidateam/aiida-core#6388, this becomes quite annoying for qeapp, since the test on the built image help a lot with speed up the integration test and we want test happened for the PR from forked repo. Here I'll probably do a workaround by both upload as artifacts and upload to ghcr.io if it is from the repo. The test will use the image from the artifact for the moment, and the image publish will use the image from ghcr.io Maybe there will be potential security issue if we allow PR to push image to registry. Let's image a case that someone maliciously create an image that has racist remarks included, it will be able to be download under But I think we already some restrictions that for the first contribution PR it has to be approved to be run with CI. So it may not be a big issue. Then we can instead of using github token but using the stored account and secret to make it able to upload to the |
Hmm, that's tricky. I understand that indeed for integration tests you'd want to use the build image. But uploading to artifacts slows things down and makes everything much more complex. I am not sure if there is a good solution currently, I would probably simply suggest to push to origin. :-) Pushes from forks should still work, but will skip the image build and integration tests. |
For |
|
Yeah, all valid points. I don't think I have anything more clever to say, it's a tradeoff. |
078654f
to
625b0a2
Compare
6693204
to
34a49f0
Compare
Superseded by #776 |
An analogous refactor of aiidalab/aiidalab-docker-stack#439 by @danielhollas
Since this repo only build one image, I slightly change the
extract-image-names.sh
toextract-image-name.sh
to get only single image name.