Comments (7)
ahh, i see. you should already be able to do that by passing --target YOUR_TARGET
to the extra-build-args
parameter @rob4629
from aws-ecr-orb.
Great, thanks for confirming.
Update
That works, thank you for your swift resolution!
from aws-ecr-orb.
wouldn't you just use the push-image
command in that case ? @rob4629
from aws-ecr-orb.
I'm planning to do that just now, it means adding in an additional docker build step (w/ target image specified) prior to push-image
.
I was just wondering if the ability to specify a target build image existed, or if it was possible to add this functionality. (I'm not skilled enough to open a PR to add this functionality... and also don't know if others would find it useful)
from aws-ecr-orb.
well, this should help you w/ the docker build
step @rob4629 http://github.com/circleci-public/docker-orb
i guess i'm not sure what you mean by 'target build' ? the idea here is that your 'target' is your ECR account url + your repo name + your tag, i believe
from aws-ecr-orb.
under the hood, all it's doing is this :
https://github.com/CircleCI-Public/aws-ecr-orb/blob/master/src/commands/build-image.yml#L41-L45
from aws-ecr-orb.
under the hood, all it's doing is this :
https://github.com/CircleCI-Public/aws-ecr-orb/blob/master/src/commands/build-image.yml#L41-L45
Right. All I was wondering was whether that command could be amended to
docker build \
<<#parameters.extra-build-args>><<parameters.extra-build-args>><</parameters.extra-build-args>> \
-f << parameters.dockerfile >> \
-t $<< parameters.account-url >>/<< parameters.repo >>:<< parameters.tag >> \
--target << parameters.target_image >> \
<< parameters.path >>
from aws-ecr-orb.
Related Issues (20)
- tag_image skip_when_tags_exist does not work HOT 2
- Cannot use command interpolation in tag parameters HOT 3
- Improve docs around `auth` parameter for 9.x release HOT 2
- Producing zero-size image on machine image ubuntu-2204:current HOT 6
- Docker layer cache is not used if building for a single platform
- build_extra_arg adds extra single quotes HOT 1
- ORB_EVAL_REPO parameter no longer evaluated with eval in version 9.0.0
- Error Thrown: existing instance for "DLC_builder" but no append mode HOT 3
- Profile name not set when calling aws ecr put-lifecycle-policy
- extra_build_args: No Support for Docker Options that contain spaces (Example: --build-arg BUILD_DATE=$(date +%F)) HOT 2
- Add profile support for tag_image step.
- Error when upgrading to the aws-cli orb 4.1.2 HOT 2
- AWS ECR Credential Helper HOT 1
- Documentation inconsistency for circleci/[email protected] HOT 2
- Only the first --build-arg is passed to Docker build in v9.0.2 HOT 2
- Image indexes are pushed even when only one platform is specified HOT 10
- Expressions no longer evaluated? HOT 1
- Similar bug to https://github.com/CircleCI-Public/aws-ecs-orb/issues/206 HOT 2
- Image created is of type Image Index HOT 3
- All image builds broken until new release occurs HOT 9
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-orb.