Code Monkey home page Code Monkey logo

Comments (7)

iynere avatar iynere commented on July 29, 2024 1

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.

rob4629 avatar rob4629 commented on July 29, 2024 1

Great, thanks for confirming.

Update
That works, thank you for your swift resolution!

from aws-ecr-orb.

iynere avatar iynere commented on July 29, 2024

wouldn't you just use the push-image command in that case ? @rob4629

from aws-ecr-orb.

rob4629 avatar rob4629 commented on July 29, 2024

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.

iynere avatar iynere commented on July 29, 2024

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.

iynere avatar iynere commented on July 29, 2024

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.

rob4629 avatar rob4629 commented on July 29, 2024

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)

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.