-
Notifications
You must be signed in to change notification settings - Fork 559
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
Working with Github package registry #127
Comments
@kyler-hyuna Do you have a link to your repo? Also |
We had this happen for 4 images in total for $ docker pull ghcr.io/fluxcd/source-controller:v0.0.16
v0.0.16: Pulling from fluxcd/source-controller
df20fa9351a1: Already exists
fbd8fc656b09: Pulling fs layer
fc19d3ac910e: Pulling fs layer
61af7bc6ae34: Pulling fs layer
81d1fa28d260: Waiting
error pulling image configuration: unknown blob
Affected packages: https://github.com/orgs/fluxcd/packages/container/package/helm-controller Builds that produced the corrupt images:
Apparently GitHub action re-runs overwrite all data from the previous run 🤦 |
@crazy-max I tried github container registry as well but it failed. Build-x returns
But v2 worked perfectly with aws ecr, so i suspect it's some mismatch between github's repositories and buildx |
@kyler-hyuna @hiddeco Someone from GitHub told me they had an issue with the new cross repo mounting and should have been fixed about an hour ago. |
@kyler-hyuna Do you have a link to your repo? Thanks. |
@kyler-hyuna your issue looks like an authentication If you're planning on migrating to GitHub Container Registry,
- run: echo ::set-env name=IMAGE_TAG::${GITHUB_REF:10}
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
with:
platforms: all
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to Registry
uses: docker/login-action@v1
with:
# registry: docker.pkg.github.com
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }}
- name: Cache Docker layers
uses: actions/cache@v2
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: ${{ runner.os }}-buildx-
- uses: docker/build-push-action@v2
with:
push: true
# tags: <org-name>/<repo-name>/<app-name>:${{ env.IMAGE_TAG }}
tags: ghcr.io/${{ github.repository_owner }}/<image-name>:${{ env.IMAGE_TAG }} I hope you find this helpful. ✌🏽 @crazy-max @hiddeco @kyler-hyuna |
@crazy-max private company repo sorry @nathane Followed these exact steps but without success. Is anything different when organizations are used? It just says
|
@kyler-hyuna It seems you cannot use GitHub Container Registry in private repos:
I suggest you open a support ticket to GitHub about this: https://support.github.com/contact |
Thanks so much man, been pulling hair on this. |
Can you reach out to support so we can dig into this? Neither the old docker service, nor GHCR work with GitHub Legacy accounts. However with recent changes many accounts can be upgraded to Teams or other account levels for very little change in billing; depending on circumstances. |
That really confused me while I known the ghcr in the first place,since it almost the same thing with Package Service |
This is only during the Beta, we'll roll out support for this next. |
Are the QEMU and Buildx steps required whenever |
See #208 (comment) |
GitHub Container Registry absolutely works w/ private organizational repos. I've been able to push to my container registry via multiple methods. The comment @crazy-max refers to above, e.g.
is for legacy plans. I don't think you'll even see packages as an option if you're still on one of those plans. @kyler-hyuna I fought with this a bit today when trying to switch to this action to better take advantage of layer/stage caching. You really need to make sure your tag correct, e.g. |
Hey so i'm currently stuck between v1 no longer working and v2 not working either.
I use the Github container registry in a private repo.
In v1 i used:
This worked great. However this is failing recently. I suspect a major update to docker happened cause I cannot even pull these images locally since it fails with the error:
In v2:
I'm using the setup from the readme:
This fails with:
Is there anything i am missing here?
The text was updated successfully, but these errors were encountered: