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

Auth does not work with docker-login action. #43

Open
andaag opened this issue Jul 28, 2022 · 2 comments
Open

Auth does not work with docker-login action. #43

andaag opened this issue Jul 28, 2022 · 2 comments

Comments

@andaag
Copy link

andaag commented Jul 28, 2022

I use the following to auth to GCR:

    - name: Login to GCR
      uses: docker/login-action@v2
      with:
        registry: gcr.io
        username: oauth2accesstoken
        password: ${{ steps.auth.outputs.access_token }}

This works fine in combination with

    - name: Build container
      uses: docker/build-push-action@v3
      with:
        push: true
        tags: ${{ steps.meta.outputs.tags }}

However, it doesn't work with kaniko, as that requires a username/password.

I'm using federated authentication, so I don't generate any passwords at all in this setup.

@andaag
Copy link
Author

andaag commented Jul 28, 2022

Looks like int128/kaniko-action#128 is relevant as well, even though its not the same action.

@bymarshall
Copy link

bymarshall commented Oct 12, 2022

Hi @andaag I made a kaniko github action that may can be useful for your setup bymarshall/kaniko-action . This action support GKE workload identity as authentication method and it's also compatible with docker/login-action.. However, if your are using Workload identity federation I think you could avoid this step since workload identity federation works very similar to workload identity in GKE and no user nor passwords are required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants