-
-
Notifications
You must be signed in to change notification settings - Fork 288
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
Docker build on PR via GitHub actions #793
Conversation
Wow! Really nice! 👏 |
I've made modification related to OZW build. |
Thanks for this great PR ! First PR building here: https://github.com/GladysAssistant/Gladys/pull/808/checks?check_run_id=685353843 |
Yeah its working fine on my repo https://github.com/VonOx/Gladys4_GithubActions EDIT: I think secrets must be at repo level not organization. |
It's supposed to be ok, I put only the Gladys repo: I started another PR to see if it works => https://github.com/GladysAssistant/Gladys/pull/783/checks?check_run_id=685812996 |
One question: how is it different from CircleCI? Are secret shared with third-party pull request? How is it safer that what we couldn't do with CircleCI? |
From what I found, it seems it's not possible to use secrets in Github Actions from PR => https://gh.neting.ccmunity/t5/GitHub-Actions/Make-secrets-available-to-builds-of-forks/td-p/30678 So this doesn't work |
Sadly it's broken on your repo as well :/ |
F**k! I've made several PR to test, but forking his own repo is not possible. |
Back to square one ! Github Actions and CircleCI have the same behavior on Fork . The risk is important for any CI system. I've no solution for now 😞 |
ok ! I'll remove the Github actions on master then |
* Create Dockerfile.buildx * Create pr-docker-image.yml * Move yaml in the correct folder * OZW 1.6 use the same version in all context Based on GladysAssistant#675 Co-authored-by: Pierre-Gilles Leymarie <pierregilles.leymarie@gmail.com>
* Create Dockerfile.buildx * Create pr-docker-image.yml * Move yaml in the correct folder * OZW 1.6 use the same version in all context Based on GladysAssistant#675 Co-authored-by: Pierre-Gilles Leymarie <pierregilles.leymarie@gmail.com>
This resolve #626 by providing docker build on PR by using Github Actions
After successful build, PR is commented with docker command to test the image
You need to set Github Secrets in the repo for pushing image to dockerhub:
Configured for dockerhub repo named gladys-dev