Comments (4)
FYI (and others who faced the same error)
append uses: actions/checkout@v1
before uses: kciter/aws-ecr-action@v1
to checkout the content of your repo. Afterwards with your project structure you can leave the path
part to default.
Example
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: kciter/aws-ecr-action@v1
with:
access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
account_id: ${{ secrets.AWS_ACCOUNT_ID }}
repo: docker/repo
region: ap-northeast-2
tags: latest,${{ github.sha }}
create_repo: true
from aws-ecr-action.
I believe I found the issue with βpathβ not working and submitted a PR: #5
Discovered that the root cause of my issue was a docker problem, not a problem with this action. When trying to run a dockerfile in a subfolder, Docker requires that you add the path to the dockerfile in both the parameter specifying the file name (-f) and the PATH context (the '.' in 'docker build .').
When I tried reproducing in docker, I realized the docker command needed to be
docker build -f ./subfolder/my.Dockerfile ./subfolder
So the correct way to build a Dockerfile in a subfolder is to put the following two parameters in the step using this action
dockerfile: ./subfolder/my.Dockerfile
path: ./subfolder
from aws-ecr-action.
Ahoy my friends. we are three now !
having the same problem
from aws-ecr-action.
FYI (and others who faced the same error)
appenduses: actions/checkout@v1
beforeuses: kciter/aws-ecr-action@v1
to checkout the content of your repo. Afterwards with your project structure you can leave thepath
part to default.Example
jobs: build-and-push: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - uses: kciter/aws-ecr-action@v1 with: access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }} secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} account_id: ${{ secrets.AWS_ACCOUNT_ID }} repo: docker/repo region: ap-northeast-2 tags: latest,${{ github.sha }} create_repo: true
It worked for me. Thank you so much
from aws-ecr-action.
Related Issues (20)
- Check if image already exists on ECR HOT 2
- Support for Docker buildx
- Invalid security token HOT 1
- Bad Yaml results in silent failure
- Docker Hub HOT 1
- ERROR: ca-certificates-20191127-r2: BAD archive HOT 1
- Module build failed HOT 13
- Fails when path is not . HOT 1
- Action failing with multiple tags
- Feature to add lifecycle policy HOT 1
- Problem with using path argument HOT 5
- Using path: HOT 1
- Space in comma separated tags results in incorrect tagging
- New release v4 HOT 2
- unable to prepare context: path "***.dkr.ecr.eu-central-1.amazonaws.com.." issue HOT 4
- Doesn't work with public repositories
- Missing KMS encryption
- [PROBLEM] extra_build_args doesnt work HOT 3
- set-output is deprecated
- Release Version for GitHub Actions Upgrade? HOT 3
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 aws-ecr-action.