mrsixw / concourse-rsync-resource

concourse.ci resource for persisting build artifacts on a shared storage location with rsync and ssh.
Apache License 2.0
18 stars 40 forks source link

Custom version identifier? #16

Open Eeems opened 3 years ago

Eeems commented 3 years ago

How would one go about specifying a custom version identifier during a put?

Eeems commented 2 years ago

Looks like @mrsixw hasn't been active on GitHub since 2019.

mrsixw commented 2 years ago

how do you mean? Got an example?

Eeems commented 2 years ago

Sure, I'm using this to sync package builds for my hosted pacman repo, and instead of using a guid for the version identifier, I'd like to use the package version.

So instead of /data/concourse/packages-3ds-libccd/9a41b888e1ef32fadb85defe0dcf6886/3ds-libccd-2.1.r0.g7931e76-2-any.pkg.tar.zst it would have the following final path /data/concourse/packages-3ds-libccd/2.1.r0.g7931e76-2/3ds-libccd-2.1.r0.g7931e76-2-any.pkg.tar.zst

mrsixw commented 2 years ago

Does disable_version_path: true Work?

Eeems commented 2 years ago

Not really, I want to be able to trigger further workflows with new versions, as well as have multiple older versions kept around.

mrsixw commented 2 years ago

Ah. You might need some sort of extra parameter then, I think the guid is generated by concourse itself. I think, it’s been a while

Eeems commented 2 years ago

Looks like it's generated here: https://github.com/mrsixw/concourse-rsync-resource/blob/master/assets/out#L64-L67

mrsixw commented 2 years ago

Yeah. So you’d need to modify this to do what you need