Comments (8)
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.
I think splitting the input into name
and tag
would make a lot more sense.
from buildah-build.
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.
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.
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.
from buildah-build.
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.
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.
I added this in a65863e
from buildah-build.
Related Issues (20)
- [BUG] Check if multiarch manifest already exists, overwrite if so
- [FEATURE] support buildah manifest add
- [BUG]
- [FEATURE] Support `--jobs N` flag on buildah bud HOT 1
- [BUG] invalid mount type "cache" HOT 3
- [FEATURE] Provide image digest HOT 1
- [BUG] Buildah-build fails when previously ran as root HOT 1
- install_latest_buildah.sh no longer valid
- [FEATURE] Matrix Strategy Multi-Arch example HOT 4
- [FEATURE] buildah in container
- [BUG] Buildah not running as root on self hosted runners HOT 3
- [FEATURE] Annotation support HOT 2
- [BUG] In multi-stage builds, incorrect `latest` tag pushed HOT 3
- [BUG] Normalize Tag Name with Lowercasing HOT 1
- [FEATURE] Use podman as fallback for Containerfile/Dockerfile builds when buildah is unavailable HOT 1
- [FEATURE] Upgrade to NODE 20 HOT 2
- Push and login using podman action vs from buildah action?
- [QUESTION] Is `containerfiles` attribute supposed to be paths in relative to the path declared in `context` attribute? HOT 1
- [BUG] Wrong entrypoint set when omitting the entrypoint parameter
- [FEATURE] Make `--squash` argument optional
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 buildah-build.