Open joonas-fi opened 4 months ago
$ mkdir /tmp/distrepo $ cd /tmp/distrepo $ ostree init --mode=archive --repo=. --collection-id=fi.joonas.os $ ostree pull-local --repo=. /ostree/repo deploy/app/fi.joonas.os/x86_64/stable
NOTE:
--mode=archive
source secrets-digitalocean.env
cat <<EOF > ~/.config/rclone/rclone.conf [joonas-os] type = s3 provider = DigitalOcean access_key_id = ${AWS_ACCESS_KEY_ID} secret_access_key = ${AWS_SECRET_ACCESS_KEY} endpoint = ams3.digitaloceanspaces.com acl = public-read EOF
$ cd /tmp/distrepo $ rclone copy . joonas-os:/fi-joonas-os/ostree/
$ mkdir /tmp/testrepo $ cd /tmp/testrepo $ ostree init --repo=. $ ostree remote add --repo=. --no-gpg-verify fi.joonas.os https://YOUR_BUCKET.S3_ENDPOINT/ostree/ $ sudo ostree pull --repo=. fi.joonas.os deploy/app/fi.joonas.os/x86_64/stable
Create distribution repo
NOTE:
--mode=archive
is important in order for the files to be representable in S3-like systems (symlinks are as regular files etc.)Sync to S3
Setup rclone
Sync
Pull to local
Links