Skip to content

Conversation

@Luap99
Copy link
Member

@Luap99 Luap99 commented Jun 14, 2025

If the artifact has a single blob then use the dst path directly as
mount in case it does not exist.

An artifact without the title annoation just gets the digest as name
which is less than ideal. While it is a decent default to avoid
conflicts users would like to configure the name.

With the name=abc option we will call the file abc in case of a signle
artifact and otherwise we use abc-x where x is the layer index starting
at 0 to avoid conflicts.

Does this PR introduce a user-facing change?

The --mount type=artifact option now mounts a single blob artifact as file if the dest path does not exists in the image.
Added a new --mount type=artifact,name=xxx option to set the filename of the artifact inside the container.

Luap99 added 2 commits June 14, 2025 09:16
If the artifact has a single blob then use the dst path directly as
mount in case it does not exist.

Signed-off-by: Paul Holzinger <[email protected]>
An artifact without the title annoation just gets the digest as name
which is less than ideal. While it is a decent default to avoid
conflicts users would like to configure the name.

With the name=abc option we will call the file abc in case of a signle
artifact and otherwise we use abc-x where x is the layer index starting
at 0 to avoid conflicts.

Signed-off-by: Paul Holzinger <[email protected]>
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jun 14, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Luap99

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 14, 2025
@Luap99
Copy link
Member Author

Luap99 commented Jun 14, 2025

cc @baude

@rhatdan
Copy link
Member

rhatdan commented Jun 15, 2025

LGTM

@baude
Copy link
Member

baude commented Jun 16, 2025

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jun 16, 2025
@openshift-merge-bot openshift-merge-bot bot merged commit 233cae8 into containers:main Jun 16, 2025
76 of 77 checks passed
@Luap99 Luap99 deleted the artifact-mount-name branch June 16, 2025 14:00
@stale-locking-app stale-locking-app bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 15, 2025
@stale-locking-app stale-locking-app bot locked as resolved and limited conversation to collaborators Sep 15, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. release-note

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants