Skip to content
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

push does not work with docker login #1

Open
andymartin opened this issue Jan 20, 2022 · 1 comment
Open

push does not work with docker login #1

andymartin opened this issue Jan 20, 2022 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@andymartin
Copy link

andymartin commented Jan 20, 2022

I am trying to build and push docker images from a dotnet core project. The docker-compose build works, and the docker login succeeds, but it fails to push with a resource denied error.

Github Actions Workflow

name: Push Docker Images

on:
  pull_request:
    types: [closed]
  workflow_dispatch:

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
      with:
        submodules: recursive
        token: ${{ secrets.ACCESS_TOKEN }}
    - name: Docker Login
      uses: docker/[email protected]
      with:
        username: ${{ secrets.DOCKERACCT }}
        password: ${{ secrets.DOCKERHUB }}
    - name: docker-compose build
      uses: sudo-bot/action-docker-compose@latest
      with:
        cli-args: -f myapp/docker-compose.yml build --parallel
    - name: docker-compose push
      uses: sudo-bot/action-docker-compose@latest
      with:
        cli-args: -f myapp/docker-compose.yml push

Output

Docker login

Run docker/[email protected] Logging into Docker Hub... Login Succeeded!

docker-compose push

Run sudo-bot/action-docker-compose@latest /usr/bin/docker run --name botsudoactiondockercomposelatest_7978bc --label 9916a7 --workdir /github/workspace --rm -e DOTNET_ROOT -e INPUT_CLI-ARGS -e HOME -e GITHUB_JOB -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_RETENTION_DAYS -e GITHUB_RUN_ATTEMPT -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_SERVER_URL -e GITHUB_API_URL -e GITHUB_GRAPHQL_URL -e GITHUB_REF_NAME -e GITHUB_REF_PROTECTED -e GITHUB_REF_TYPE -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e GITHUB_ACTION_REPOSITORY -e GITHUB_ACTION_REF -e GITHUB_PATH -e GITHUB_ENV -e RUNNER_OS -e RUNNER_ARCH -e RUNNER_NAME -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e ACTIONS_CACHE_URL -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/trading/trading":"/github/workspace" botsudo/action-docker-compose:latest "-f myapp/docker-compose.yml push" ::debug CLI_ARGS: -f myapp/docker-compose.yml push Pushing service-host (myacct/myapp-service-host:latest)... The push refers to repository [docker.io/myacct/myapp-service-host] denied: requested access to the resource is denied

@williamdes williamdes added the question Further information is requested label Sep 22, 2022
@williamdes
Copy link
Member

Hi @andymartin
It seems like I missed this notification, I am very sorry for that.

It's maybe a bug or maybe not, the thing is that the login is maybe not available in the file system of the docker-compose image.
I have to research about it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Development

No branches or pull requests

2 participants