Closed andrey-helldar closed 4 years ago
@andrey-helldar
Looking at the generated buildx command it looks like you cannot push to andrey-***/laravel-gitlab-ci
repo on DockerHub. Something is wrong with your DOCKER_IMAGE var. I think it should be helldar/laravel-gitlab-ci
.
@crazy-max, The devil is in the details.
Indeed, that was the problem.
My repository name was taken automatically from the GitHub namespace - andrey-helldar/*
, and in DockerHub it is different -helldar/*
.
I replaced DOCKER_IMAGE=${GITHUB_REPOSITORY,,}
with DOCKER_IMAGE=helldar/laravel-gitlab-ci
and it worked.
Thanks! 🍻
docker login
- and reauthenticating helped me solve this very problem.
For some reason the auth was no longer valid, despite having been authenticated just a couple of days before.
Behaviour
Steps to reproduce this issue
Just run the script or see the output of mine.
Expected behaviour
The script should compile the docker container and push it into the main register (https://hub.docker.com/repository/docker/helldar/laravel-gitlab-ci).
Actual behaviour
When trying to push, the script returns an authorization error:
Configuration
Logs
logs_18.zip