How to find versions from ostree repo


Where is the version for a specific commit kept in the repo?

I can see the commit at $REPONAME/refs/heads/fedora/27/x86_64/atomic-host-kubernetes, but I can't find the version. For me it's something like this:
# rpm-ostree status
State: idle; auto updates disabled
* ostree://our_custom_repo:fedora/27/x86_64/atomic-host-kubernetes
                   Version: 27.20180801_1740.0 (2018-08-03 15:00:29)
                    Commit: 86370353a42b9dc68acab17a4b950a23af4ac1eb63af10bb162ff3c00a4ff210
              GPGSignature: Valid signature by 3A362F3C67B04FEBF704CDA84F34A4152F54FEF1

Also, I'm trying to keep the repo in s3, and for this I'm doing something like:

rpm-ostree compose tree --cachedir=/srv/cache --repo=$REPONAME /srv/fedora-atomic//fedora-atomic-kubernetes.json
aws s3 sync $REPONAME s3://$S3BUCKET/$REPONAME --acl public-read

But this always keeps only the latest version. Is there a way to make rpm-ostree keep all versions built? I copied the file $REPONAME/refs/heads/fedora/27/x86_64/atomic-host-kubernetes to a new build, but the content is overwritten.

Thank you,
Cristian Falcas

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]