Hi,

On Fri, Nov 17, 2023 at 10:28 AM LinkinStar <[email protected]> wrote:

> Hi everyone,
>
> We want to build a docker image and push it to the docker
> hub(apache/answer) via GitHub action.


I believe the repository needs to exist before you can push to it.
With my Infra Hat on I have created the repository.


> However, after configuring the docker
> username and token, we have failed to log in. There was a setting page on
> the GitHub page that allowed us to configure secrets, but now we don't have
> access to do so. I'm not sure if secrets are there by default. So I would
> like to ask how to configure secrets or how to apply for the permission of
> pushing docker image?
>

Yeah there are  Org Secrets that repositories need to be whitelisted on in
order
to work. With my Infra Hat on I have whitelisted the incubator-answer
repository to
the two secrets.

>
> The GitHub action looks like this
>
> https://github.com/apache/incubator-answer/blob/58dadefc99d1ec015e1d45845f33a91cf6679b11/.github/workflows/build-image-for-release.yml#L53-L57
>
> https://github.com/apache/incubator-answer/actions/runs/6901747619/job/18777119795
>
>
You will need to change 'DOCKERHUB_USERNAME' to  'DOCKERHUB_USER' , the
other is correct.

HTH

Gav...

Thanks,
> LinkinStar
>


-- 

*Gavin McDonald*
Systems Administrator
ASF Infrastructure Team

Reply via email to