Skip to content
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

How get access for package published into ghcr.io #206

Closed
maxifly opened this issue Jun 25, 2024 · 1 comment
Closed

How get access for package published into ghcr.io #206

maxifly opened this issue Jun 25, 2024 · 1 comment

Comments

@maxifly
Copy link

maxifly commented Jun 25, 2024

I use builder for create package in ghcr.io
But when I try install addon from HomeAsstant I get error:

Can't install ghcr.io/maxifly/yabackup-aarch64:2.0.2-b: 500 Server Error for http+docker://localhost/v1.45/images/create?tag=2.0.2-b&fromImage=ghcr.io%2Fmaxifly%2Fyabackup-aarch64&platform=linux%2Farm64: Internal Server Error ("Head "https://ghcr.io/v2/maxifly/yabackup-aarch64/manifests/2.0.2-b": denied")

Package and repository is public.
I cant understand where my wrong

My Actions code:

name: Create and publish a Docker image to GitHub

on:
workflow_dispatch:
env:
GIT_TAG_NAME: dev

jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
  - uses: actions/checkout@v4
  - uses: docker/login-action@v3.2.0
    with:
      registry: ghcr.io
      username: maxifly
      password: ${{ secrets.GITHUB_TOKEN }}
  - uses: home-assistant/builder@master
    with:
      args: |
        --all \
        --target ./yabackup \
        --docker-hub ghcr.io/maxifly/yabackupaddon \
        --addon \
        --no-cache
@maxifly
Copy link
Author

maxifly commented Jun 26, 2024

Sorry, is my mistake

I write incorrect path into "image" field in addon config.yml file

@maxifly maxifly closed this as completed Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant