gof3 was improved by using the CLI to update an actual repository. Bugs were found and fixed until it worked. This debug loop was as follows:
- f3-cli to mirror https://code.forgejo.org/infrastructure/k8s to a file system archive
- rsync it to the https://a.forgefriends.org/ machine
- figure out the PVC of the forgejo pod
- move the file system archive there
- forgejo-cli f3 mirror to mirror the file system to https://a.forgefriends.org/infrastructure/k8s
This is tedious and the first part was automated as follows:
- The CI of https://code.forgejo.org/forgefriends/k8s-f3 runs f3-cli and update the repository
- figure out the PVC of the forgejo pod
- clone https://code.forgejo.org/forgefriends/k8s-f3
- forgejo-cli f3 mirror to mirror the file system to https://a.forgefriends.org/infrastructure/k8s
The next step is to add a workflow to the destination forge that uses a new API endpoint to mirror the content of the F3 archive found in the repository