We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The Bug Error pushing to docker.pkg.github.com. Pushing to this registry gives the following error:
docker.pkg.github.com
error parsing HTTP 404 response body: invalid character 'p' after top-level value: "404 page not found\n"
To Reproduce The following YAML was used in .github/workflows/main.yml
.github/workflows/main.yml
name: Push To Package Registry on: [push] jobs: publish_docker: runs-on: ubuntu-latest steps: - uses: actions/checkout@master - name: Publish to Registry uses: elgohr/Publish-Docker-Github-Action@master with: name: ${{ github.GITHUB_REPOSITORY }}project_odin_backend username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} tag: $(echo $GITHUB_SHA | head -c7) registry: ${{ secrets.DOCKER_REGISTRY_URL }} dockerfile: ./ops/images/django.Dockerfile
Output
2019-12-27T12:24:12.9291454Z Successfully built 1046babade11 2019-12-27T12:24:12.9613004Z Successfully tagged ***/project_odin_backend:deployment 2019-12-27T12:24:12.9805217Z The push refers to repository [***/project_odin_backend] 2019-12-27T12:24:13.0121391Z befe63b0f688: Preparing 2019-12-27T12:24:13.0121583Z 3f2736cb5bbb: Preparing 2019-12-27T12:24:13.0121717Z 99347eebf044: Preparing 2019-12-27T12:24:13.0121852Z a12cae9dcc97: Preparing 2019-12-27T12:24:13.0121984Z 44caa05ec880: Preparing 2019-12-27T12:24:13.0122117Z bee6c961bff1: Preparing 2019-12-27T12:24:13.0122246Z 852a1bb5386c: Preparing 2019-12-27T12:24:13.0122375Z 9437609235f0: Preparing 2019-12-27T12:24:13.0122505Z bee1c15bf7e8: Preparing 2019-12-27T12:24:13.0122635Z 423d63eb4a27: Preparing 2019-12-27T12:24:13.0122799Z 7f9bf938b053: Preparing 2019-12-27T12:24:13.0122927Z f2b4f0674ba3: Preparing 2019-12-27T12:24:13.0123056Z 852a1bb5386c: Waiting 2019-12-27T12:24:13.0123189Z 9437609235f0: Waiting 2019-12-27T12:24:13.0123330Z bee1c15bf7e8: Waiting 2019-12-27T12:24:13.0123465Z 423d63eb4a27: Waiting 2019-12-27T12:24:13.0123601Z 7f9bf938b053: Waiting 2019-12-27T12:24:13.0123751Z bee6c961bff1: Waiting 2019-12-27T12:24:13.0123882Z f2b4f0674ba3: Waiting 2019-12-27T12:24:13.0407896Z error parsing HTTP 404 response body: invalid character 'p' after top-level value: "404 page not found\n" 2019-12-27T12:24:13.2949894Z ##[error]Docker run failed with exit code 1 2019-12-27T12:24:13.2969908Z Cleaning up orphan processes
The text was updated successfully, but these errors were encountered:
Are you sure about ${{ github.GITHUB_REPOSITORY }}? Looks like it's ${{ github.repository }} (https://help.github.com/en/actions/automating-your-workflow-with-github-actions/contexts-and-expression-syntax-for-github-actions#github-context). As you're trying to push to Github registry, it wouldn't work in that way (see the hint at - https://github.com/elgohr/Publish-Docker-Github-Action#registry). Furthermore there is no option like tag: $(echo $GITHUB_SHA | head -c7). You should probably read the docs more careful (https://github.com/elgohr/Publish-Docker-Github-Action#snapshot)
${{ github.GITHUB_REPOSITORY }}
${{ github.repository }}
tag: $(echo $GITHUB_SHA | head -c7)
Sorry, something went wrong.
Got it working. Thanks a lot for the swift response
elgohr
No branches or pull requests
The Bug
Error pushing to
docker.pkg.github.com
. Pushing to this registry gives the following error:To Reproduce
The following YAML was used in
.github/workflows/main.yml
Output
The text was updated successfully, but these errors were encountered: