Giter Site home page Giter Site logo

Comments (8)

tetchel avatar tetchel commented on May 30, 2024 1

i guess somewhat related is, the image name is currently expected to include the tag, which seems counter-intuitive to me. for push-to-registry, name and tag are separate. should we split that into two inputs?

from buildah-build.

divyansh42 avatar divyansh42 commented on May 30, 2024 1

I think splitting the input into name and tag would make a lot more sense.

from buildah-build.

divyansh42 avatar divyansh42 commented on May 30, 2024

What if we output the image digest? I see tekton task use to output 'digest' in the results of the task.
Ref: https://github.com/tektoncd/catalog/blob/master/task/buildah/0.2/buildah.yaml#L54

from buildah-build.

tetchel avatar tetchel commented on May 30, 2024

isn't the digest a hash? I was thinking more the image name:tag that could then be passed to the push-to-registry step.

Digest could be useful separately

from buildah-build.

lstocchi avatar lstocchi commented on May 30, 2024

Also the docker build-push-action returns a digest https://github.com/docker/build-push-action/blob/master/action.yml
I'm really not sure if they returns the digest or the image id (the same in the buildah task @divyansh42 posted, the name is confusing) but my vote goes to the image id.

It really makes no sense for me to use the output to return something that is not made up by the action. If we return image:tag we are just returning an input. A user could easily create a variable and use that without hard-coding the actual value multiple times.

image

from buildah-build.

tetchel avatar tetchel commented on May 30, 2024

in my own example, the name and tag were stored separately because they are passed to the action as separate inputs, but after the action they are one output, that's all.

We can have as many outputs as we want, so name, url, and ID are all on the table, we don't have to pick just one.

from buildah-build.

tetchel avatar tetchel commented on May 30, 2024

the full image URL is currently printed but would also be a useful output (more useful than the name) because i'll pass it to the subsequent deploy step

edit: redhat-actions/push-to-registry#4

from buildah-build.

tetchel avatar tetchel commented on May 30, 2024

I added this in a65863e

from buildah-build.

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.