freight-team / freight

A modern take on the Debian archive.
Other
107 stars 37 forks source link

Port CI to GitHub Actions #106

Closed yegorich closed 3 years ago

yegorich commented 3 years ago

GitHub repository needs two secrets and a passphrase that will be imported before the make check can be invoked:

To avoid interactive password request from apt a passphrase file will be used.

yegorich commented 3 years ago

This is WiP. At least the whole testing process starts. But I don't know how to deal with pgp issues. It seems like we need at least to export GPG_TTY:

export GPG_TTY=$(tty)

Any ideas? I'm quite new to GitHub Actions.

mattock commented 3 years ago

I know that particular problem, and I recall documenting it the README.md. But I don't yet have any experience with GitHub Action so can't in that regard.

yegorich commented 3 years ago

So, the first concept is working. I've created the following secrets for my fork:

With these env variables I can import key and also create a passphrase file for apt. Now we need them for the main repository. The keys were exported as follows (as mentioned here):

gpg --export-secret-keys YOUR_ID_HERE | base64 > private.key

If I should add those secrets, I need admin privileges.