-
Notifications
You must be signed in to change notification settings - Fork 757
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
Replace docker.sh script with GitHub Actions #4387
Conversation
This looks fine on cursory view; before merging this in I need to check whether the docker Github Actions are allowed for the OpenGrok repository. |
Confirmed that |
Merging, will see how this works when the next OpenGrok release is ready. Thanks ! |
Looks like the docker image push for the master failed: https://github.com/oracle/opengrok/actions/runs/5542739458/jobs/10117809269 with:
|
I'm very confused by this error. Since the login succeeded and the push failed, it would suggest that the user is actually missing permissions (like this comment said: docker/build-push-action#853 (comment)). But assuming it worked before and you didn't change anything it doesn't really make sense. Since this is hard for me to verify and test I'd suggest you revert this PR unfortunately and maybe tackle it another day. However everything else looks fine and the token should be valid for more than 4 minutes. No idea why this is failing, sorry 😕 |
There are 2 possibilities - either the actions setup wrong username/password or the associated user has insufficient permissions. I changed the username/password recently to use a token. Looking at the token, it has all the permissions. Looking at the error message |
The I created new API token on docker.io associated with the username used for the Github action, used a clone of the OpenGrok repository, set the The user has 2FA setup, which might be related. That said, using the same username/password with the command line I don't have the capacity to investigate the inner workings of the above tools, so reverted the change in cf02a2b for now. It would be nice to try it again later. |
For the record, the |
This PR replaces the
docker.sh
script with pure GitHub Actions, which makes it way easier to solve #3948 since we can just addplatforms: linux/arm64
then.The current behavior is copied without changes:
oracle/opengrok
latest
image tag