However, all my builds are now failing at the post_push step, where the docker push "${DOCKER_REPO}:${version}" command now fails with:
The push refers to repository [docker.io/vladgh/testautobuildhooks]
73046094a9b8: Preparing
73046094a9b8: Layer already exists
errors:
denied: requested access to the resource is denied
unauthorized: authentication required
Did anything change in the past few days with the way Docker Hub runs the build process?
We’re having the exact same problem on our automated builds. We tag our branches with a datestamp. At first we thought the problem was in the date command. But,for testing, I simplified it to the following and we still get the same error across multiple repos.
#!/bin/bash
docker tag $IMAGE_NAME $DOCKER_REPO:$SOURCE_BRANCH-TESTPOSTPUSHTAG
docker push $DOCKER_REPO:$SOURCE_BRANCH-TESTPOSTPUSHTAG
Error Message:
denied: requested access to the resource is denied
post_push hook failed! (1)