PiBrewing / craftbeerpi4

GNU General Public License v3.0
58 stars 28 forks source link

Make created docker image publicly available #101

Closed papauorg closed 1 year ago

papauorg commented 1 year ago

The docker image that is created via the build pipeline in this repo is not publicly available. I noticed that when I was trying to update the image of my brewery setup:

[+] Building 0.3s (3/3) FINISHED                                                                                        
 => [internal] load build definition from Dockerfile                                                               0.0s
 => => transferring dockerfile: 105B                                                                               0.0s
 => [internal] load .dockerignore                                                                                  0.0s
 => => transferring context: 2B                                                                                    0.0s
 => ERROR [internal] load metadata for ghcr.io/pibrewing/craftbeerpi4:v4.1.6                                       0.3s
------
 > [internal] load metadata for ghcr.io/pibrewing/craftbeerpi4:v4.1.6:
------
failed to solve: failed to fetch anonymous token: unexpected status: 401 Unauthorized

Also it is not visible when viewing the repo in the browser when not logged in to github: Missing packages

Please change the package settings of the docker image so it can be downloaded anonymously and so can be used by whoever wants to without a login.

Here is the github documentation on how this can be done: https://docs.github.com/en/packages/learn-github-packages/configuring-a-packages-access-control-and-visibility#configuring-visibility-of-packages-for-an-organization

Best regards, Philipp

avollkopf commented 1 year ago

@papauorg Had to enable public option first for the org as possibility and changed it now for the repo. Can you test if it is working and report back.

papauorg commented 1 year ago

@avollkopf Perfect! The images are visible in the browser and can be downloaded via docker. Thanks