Comments (4)
@dbuades This action already handles AWS Elastic Container Registry (ECR):
- name: Login to Amazon ECR
uses: docker/login-action@v1
with:
registry: ${{ secrets.ECR_REGISTRY }}
username: ${{ secrets.ACCESS_KEY_ID }}
password: ${{ secrets.SECRET_ACCESS_KEY }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
...
If role-*
are required on your side, then yes maybe we should be compatible with aws-actions/configure-aws-credentials
.
from login-action.
@dbuades This action already handles AWS Elastic Container Registry (ECR):
- name: Login to Amazon ECR uses: docker/login-action@v1 with: registry: ${{ secrets.ECR_REGISTRY }} username: ${{ secrets.ACCESS_KEY_ID }} password: ${{ secrets.SECRET_ACCESS_KEY }} - name: Build and push id: docker_build uses: docker/build-push-action@v2 with: ...If
role-*
are required on your side, then yes maybe we should be compatible withaws-actions/configure-aws-credentials
.
Yes, that's what I meant, we need roles on our side and unfortunately this action doesn't support them.
I guess making this action compatible with aws-actions/configure-aws-credentials
is the easiest way to go, so that's why I suggested it.
Thanks and sorry if I didn't explain myself clearly!
from login-action.
Yes, that's what I meant, we need roles on our side and unfortunately this action doesn't support them.
My bad I read it wrong. Something like this should work in the meantime:
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.DEFAULT_REGION }}
role-to-assume: ${{ secrets.ROLE_ARN }}
role-duration-seconds: 1200
role-session-name: GithubActions
- name: Login to Amazon ECR
uses: docker/login-action@v1
with:
registry: ${{ secrets.ECR_REGISTRY }}
username: ${{ secrets.ACCESS_KEY_ID }}
password: ${{ secrets.SECRET_ACCESS_KEY }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
...
Env vars exported by aws-actions/configure-aws-credentials
will be used through the ecr get-login
cmd
from login-action.
That was really really quick, thanks!
from login-action.
Related Issues (20)
- Cannot login with self-host registry HOT 1
- Action raise warnings on deprecated features HOT 1
- Error getting credentials and error saving credentials HOT 1
- Support multi-user login HOT 1
- Request to bump dependencies HOT 1
- Usage with registry.hop.io
- docker login failure on macos self hosted runner HOT 2
- Public ECR login issue on Windows
- Harbor login issue: authentication required HOT 4
- It always fails While logining local-deployment Nexus HOT 1
- Login issue , secrate checked , not able to push to github registry , token working in local so not token issu HOT 1
- failed to authorize: failed to fetch anonymous token: unexpected status: 403 Forbidden HOT 3
- Support FIPS URLs HOT 2
- Support for DigitalOcean Container Registry HOT 2
- tls: failed to verify certificate: x509: certificate signed by unknown authority HOT 4
- Succefull registry login, but I'm getting x509 error during build. HOT 1
- Clarified documentation re: GAR + Workflow Identity Federation
- Support login via Direct Workload Identity Federation HOT 5
- Fhcc HOT 2
- Fvv
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from login-action.