-
-
Notifications
You must be signed in to change notification settings - Fork 345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate APT repo for releases and under dev builds #3197
Conversation
b497eea
to
989fb07
Compare
989fb07
to
4b986a1
Compare
4b986a1
to
ac704fe
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think lets get this merged in and start doing some testing. Traffic wise it should be pretty negligible in the scheme of things.
I do however think we should consider signing the releases on the next iteration
https://wiki.debian.org/SecureApt
We can host the public key somewhere and put the private key into CI. Would be similar how the likes of spotify distribute their releases.
🤞 |
https://ksp-ckan.s3-us-west-2.amazonaws.com/ <Contents>
<Key>deb/dists/nightly/main/binary-all/Packages.gz</Key>
<LastModified>2020-11-17T20:10:39.000Z</LastModified>
<ETag>"499bbef01d297e20bcd50f86ccf90afb"</ETag>
<Size>482</Size>
<StorageClass>STANDARD</StorageClass>
</Contents>
<Contents>
<Key>deb/dists/nightly/main/binary-all/Release</Key>
<LastModified>2020-11-17T20:10:39.000Z</LastModified>
<ETag>"e6f45e253b75aa1129d4abd75158d0cb"</ETag>
<Size>129</Size>
<StorageClass>STANDARD</StorageClass>
</Contents>
<Contents>
<Key>deb/dists/nightly/main/binary-all/ckan_1.29.1_all.deb</Key>
<LastModified>2020-11-17T20:10:39.000Z</LastModified>
<ETag>"70eda5aa485cc3e5b1329ad0375de0a5"</ETag>
<Size>765360</Size>
<StorageClass>STANDARD</StorageClass>
</Contents> Well, the files are there. I'm in Windows right now so I can't test immediately, but if somebody wants to try it out, this one should be active now:
|
Attempting to re-run the Eddington release to generate the EDIT: Oh, that won't work because the |
It complains about a missing Release-file. Not sure where (else) it expects it though.
|
Could a |
Couldn't find a debug flag, but downgrading the repo to HTTP and some Wireshark action revealed the files it tries to access:
Which matches the info from https://wiki.debian.org/DebianRepository/Format:
|
Yup, Mono has |
@DasSkelett Can we make CKAN/.github/workflows/deploy.yml Lines 76 to 88 in 984c39e
|
I don't think this is possible here, at least I'm not finding anything in the docs. |
Better now? |
Working on a summary of all the warnings and errors 😬 |
New round:
Can be bypassed by adding Then there are a bunch of conflicting architecture warnings, can be reduced by adding
And those warnings appear, too:
|
OK, clearly my guess at how to handle platform-neutral packages was wrong. Are you able to find any better methods? |
And |
https://wiki.debian.org/DebianRepository/Format#Architectures
I think they meant "presence" instead of "presents", but otherwise I am just not understanding these words. Any idea what the heck this is supposed to mean? |
Same, most of this guide is either written in a confusing way or seems to be missing important information to make sense. |
Motivation
Currently we provide
.deb
packages, but somewhat ironically (given what CKAN is for), the user must download a new.deb
file and install it manually when a new version is released.Changes
Now when we build the
.deb
file, we also create a_build/deb/apt-repo
folder containing the.deb
file, aRelease
file, and aPackages.gz
file, modeled on Mono's:For releases, these are uploaded to:
https://ksp-ckan.s3-us-west-2.amazonaws.com/deb/dists/stable/main/binary-all
For other builds, these are uploaded to:
https://ksp-ckan.s3-us-west-2.amazonaws.com/deb/dists/nightly/main/binary-all
This should allow users to add one of the following lines to their
sources.list
and get ckan releases automatically:NOTE: This is all based on documentation of how to build an APT repo. It still needs to be tested to confirm that it will actually work with APT clients.
Open questions
--delete
flag fordeploy.yml
, or would it erase the release builds as well?