You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
name: build_imageon: [push]jobs:
push_to_registry:
name: Push Docker image to GitHub Packagesruns-on: ubuntu-lateststeps:
- name: Check out the repouses: actions/checkout@v2
- name: Prepareid: preprun: | DOCKER_IMAGE=ghcr.io/org-name/repo-name/image-name VERSION=latest if [[ $GITHUB_REF == refs/tags/* ]]; then VERSION=${GITHUB_REF#refs/tags/v} fi TAGS="${DOCKER_IMAGE}:${VERSION}" if [[ $VERSION =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then TAGS="$TAGS,${DOCKER_IMAGE}:latest" fi echo ::set-output name=tags::${TAGS}
- name: Set up QEMUuses: docker/setup-qemu-action@v1
- name: Set up Docker Buildxuses: docker/setup-buildx-action@v1
- name: Login to GitHub Packages Docker Registryuses: docker/login-action@v1with:
registry: ghcr.iousername: ${{ github.repository_owner }}password: ${{ secrets.ACCESS_TOKEN }}
- name: Push to GitHub Packagesuses: docker/build-push-action@v2with:
context: .file: ./Dockerfilepush: truetags: ${{ steps.prep.outputs.tags }}
Logs
This is the command generated /usr/bin/docker buildx build --tag ghcr.io/org/repo/img:latest --iidfile /tmp/docker-build-push-IWJ2p2/iidfile --file ./Dockerfile --push .
And this is the error after building the image
#12 exporting to image
#12 exporting layers
#12 exporting layers 124.7s done
#12 exporting manifest sha256:c397e9e4e7b9623d3a0a5a9ff3514cbbf6042c143140473fa896575af15d8015 done
#12 exporting config sha256:ce7590506aa8d1d4268d742e264cbec225a2ee39b05f0d75886727dc931e3904 done
#12 pushing layers
#12 pushing layers 325.0s done
#12 ERROR: failed commit on ref "layer-sha256:7677da09ac2b6576557eb8a144ac2e9a3d062b83a59dc44cc2ff79d26d783a9e": no response
------
> exporting to image:
------
failed to solve: rpc error: code = Unknown desc = failed commit on ref "layer-sha256:7677da09ac2b6576557eb8a144ac2e9a3d062b83a59dc44cc2ff79d26d783a9e": no response
##[error]The process '/usr/bin/docker' failed with exit code 1
This is probably not a bug but just me doing something wrong, but can't figure out what part. Please any help is appreciated.
Thanks
The text was updated successfully, but these errors were encountered:
With GitHub Container Registry you can only have a single namespace (user or org) compared to GitHub Package Registry. So in your case I think you can't use ghcr.io/org/repo/img:latest tag. Try with ghcr.io/org/repo:latest instead.
Behaviour
Steps to reproduce this issue
Expected behaviour
Actual behaviour
Configuration
Logs
This is the command generated
/usr/bin/docker buildx build --tag ghcr.io/org/repo/img:latest --iidfile /tmp/docker-build-push-IWJ2p2/iidfile --file ./Dockerfile --push .
And this is the error after building the image
This is probably not a bug but just me doing something wrong, but can't figure out what part. Please any help is appreciated.
Thanks
The text was updated successfully, but these errors were encountered: