Giter VIP home page Giter VIP logo

Comments (3)

whoan avatar whoan commented on May 31, 2024

Is there any problem with current ecr login? You should be able to log in like this:

- uses: whoan/docker-build-with-cache-action@v5
  with:
    username: "${{ secrets.AWS_ACCESS_KEY_ID }}"
    password: "${{ secrets.AWS_SECRET_ACCESS_KEY }}"
    session:  "${{ secrets.AWS_SESSION_TOKEN }}"  # if you need role assumption
    registry: 861729690598.dkr.ecr.us-west-1.amazonaws.com
    image_name: hello-world

from docker-build-with-cache-action.

xenoterracide avatar xenoterracide commented on May 31, 2024

to be honest, I didn't try it because after reading the documentation I realized this wasn't going to do what I need, so it probably does work. The reason I opened this is because I need to login to AWS to access other services too, seems silly to login more than once. I'm also not certain how it might interact with those steps depending on what you're doing. ecr login also has an output that auto returns the registry name and sanitized the account id in login output. I think on step cleanup? hook aws credentials is removing the credentials.

from docker-build-with-cache-action.

whoan avatar whoan commented on May 31, 2024

@xenoterracide I think that we should only take advantage of the environment variables configure-aws-credentials set, but only to reuse AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY. Using the registry from the output makes docker-build-with-cache-action too dependent of the context IMO.

from docker-build-with-cache-action.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.