Move to woodpecker CI #1104

Merged
mmarif merged 41 commits from qwerty287/GitNex:drone into main 1 week ago
Collaborator

Addresses #1099

@mmarif you would have to enable the repo on woodpecker and disable on gitlab... If you don't think this is a good idea, just close it.

Required secrets: BOT_TOKEN, KS_PASS, KEY_PASS, KS_REPO, WEBDAV_PASSWORD, CROWDIN_TOKEN

We can easily extend this later to run linters and such things.

Addresses https://codeberg.org/gitnex/GitNex/issues/1099 @mmarif you would have to enable the repo on woodpecker and disable on gitlab... If you don't think this is a good idea, just close it. Required secrets: `BOT_TOKEN`, `KS_PASS`, `KEY_PASS`, `KS_REPO`, `WEBDAV_PASSWORD`, `CROWDIN_TOKEN` We can easily extend this later to run linters and such things.
qwerty287 added this to the 4.3.0 milestone 1 month ago
qwerty287 added the
CI
Enhancement
labels 1 month ago
qwerty287 self-assigned this 1 month ago
qwerty287 added 7 commits 1 month ago
qwerty287 removed this from the 4.3.0 milestone 1 month ago
qwerty287 added 1 commit 1 month ago
6543 added 1 commit 1 month ago
fa2d365e9d
CI.restart()
Collaborator

enabled ci ...

enabled ci ...
Collaborator
to to https://ci.codeberg.org/gitnex/GitNex/settings#secrets to add secrets
Collaborator

we should add a step running tests added in #1105

we should add a step running tests added in #1105
6543 added 1 commit 1 month ago
9dd1a3b217 Merge branch 'main' into drone
Poster
Collaborator

I didn't add this yet because it wasn't there and I just would add it in a later PR.
And I wasn't able to get this running because I need a container with android emulator which I couldn't find (even some avd containers didn't work, take a look at my markwon plugin as example)

I didn't add this yet because it wasn't there and I just would add it in a later PR. And I wasn't able to get this running because I need a container with android emulator which I couldn't find (even some avd containers didn't work, take a look at my markwon plugin as example)
qwerty287 added 1 commit 1 month ago
Poster
Collaborator

OK, tried to find a working docker image and it seems not really possible. I found https://github.com/thedrhax-dockerfiles/android-avd (which is a bit old, android 8) and https://github.com/chrisss404/android-emulator. Both use (at least in their examples, but I don't think it's possible without) access to the host's /dev/kvm device which is not possible for us in woodpecker. I think just don't run it yet, if we would like to use it we could also look at AVD cloud providers like https://emulator.wtf/ (there's a github action for it), but I don't know if this is free or not.

OK, tried to find a working docker image and it seems not really possible. I found https://github.com/thedrhax-dockerfiles/android-avd (which is a bit old, android 8) and https://github.com/chrisss404/android-emulator. Both use (at least in their examples, but I don't think it's possible without) access to the host's `/dev/kvm` device which is not possible for us in woodpecker. I think just don't run it yet, if we would like to use it we could also look at AVD cloud providers like https://emulator.wtf/ (there's [a github action for it](https://github.com/emulator-wtf/run-tests)), but I don't know if this is free or not.
qwerty287 added 1 commit 1 month ago
fb979b2ac8
Update readme link
Owner

It's nice to have this, I am not against it. But what my focus right now is the issues we have at hand to fix especially after merging a big refactor PR and another one(autodeploy) is going on.

So this can wait for now. Once we are free to have look at this, we will work on it thoroughly. Maybe at the end of 4.3.0 as I am thinking of 4.3.0 release next month.

It's nice to have this, I am not against it. But what my focus right now is the issues we have at hand to fix especially after merging a big refactor PR and another one(autodeploy) is going on. So this can wait for now. Once we are free to have look at this, we will work on it thoroughly. Maybe at the end of 4.3.0 as I am thinking of 4.3.0 release next month.
qwerty287 added 1 commit 1 month ago
086897613e
Merge branch 'main' into drone
Poster
Collaborator

@mmarif it would be nice if you could enable the "Protected" options in the woodpecker settings. This allows us more control over resources and similar things.
https://ci.codeberg.org/gitnex/GitNex/settings

@mmarif it would be nice if you could enable the "Protected" options in the woodpecker settings. This allows us more control over resources and similar things. https://ci.codeberg.org/gitnex/GitNex/settings
Owner

@qwerty287 not sure what it will do, but enabled.

@qwerty287 not sure what it will do, but enabled.
Poster
Collaborator

That means that we (the maintainers) have to approve every build before it starts. That's useful to prevent running it on e.g. just changing the readme or such files which does not need it. Also, we can control that it doesn't run on wip PRs.

That means that we (the maintainers) have to approve every build before it starts. That's useful to prevent running it on e.g. just changing the readme or such files which does not need it. Also, we can control that it doesn't run on wip PRs.
qwerty287 added 3 commits 1 month ago
qwerty287 added 1 commit 1 month ago
e3bd98d255
Fix env
6543 added 1 commit 1 month ago
122d7338f2
Merge branch 'master' into drone
qwerty287 added 1 commit 4 weeks ago
aa4b3314b5
Merge branch 'main' into drone
qwerty287 added 1 commit 4 weeks ago
6c13eb2500
Merge branch 'main' into drone
qwerty287 added 1 commit 4 weeks ago
0eb7168a63
Rename steps
6543 added 1 commit 3 weeks ago
f46287e35f Merge branch 'main' into drone
qwerty287 added 1 commit 3 weeks ago
qwerty287 added 1 commit 3 weeks ago
2c5c51742c Merge branch 'main' into drone
qwerty287 added 2 commits 3 weeks ago
qwerty287 added 1 commit 3 weeks ago
Collaborator
https://codeberg.org/gitnex/GitNex/settings/hooks/1258 > failure to parse yaml from hook
Poster
Collaborator

OK, that's the failure reason. I changed some things, however, the linters of woodpecker CLI says they're valid - could you take a look at them?

OK, that's the failure reason. I changed some things, however, the linters of woodpecker CLI says they're valid - could you take a look at them?
qwerty287 added 1 commit 3 weeks ago
qwerty287 added 1 commit 3 weeks ago
qwerty287 added 1 commit 3 weeks ago
qwerty287 added 1 commit 3 weeks ago
qwerty287 added 1 commit 3 weeks ago
a14c032856
try something
qwerty287 added 1 commit 3 weeks ago
10c94152ef
try something again
qwerty287 added 1 commit 3 weeks ago
777919fe95
again
qwerty287 added 1 commit 3 weeks ago
09431dc9fd
this did not work
qwerty287 added 1 commit 3 weeks ago
eb3dd0c0b1
last try
qwerty287 added 1 commit 3 weeks ago
21dcf57fa4
try with full
Poster
Collaborator

Should work again.

Should work again.
qwerty287 added 1 commit 2 weeks ago
6909e91e0f
Merge branch 'main' into drone
6543 added 1 commit 1 week ago
007f754d8d Merge branch 'main' into drone
qwerty287 added 1 commit 1 week ago
mmarif reviewed 1 week ago
environment:
OUTPUT: "signed.apk"
INSTANCE: "https://codeberg.org"
KS_FILE: "ci_keystore.jks"
mmarif commented 1 week ago
Owner

This should be gitnex_ci_keystore.jks.

This should be `gitnex_ci_keystore.jks`.
qwerty287 marked this conversation as resolved
qwerty287 added 1 commit 1 week ago
1abd481f6c Fix keystore name
mmarif approved these changes 1 week ago
mmarif referenced this issue from a commit 1 week ago
mmarif merged commit 43b1a3907d into main 1 week ago
6543 deleted branch drone 6 days ago

Reviewers

mmarif approved these changes 1 week ago
ci/woodpecker/pr/locale Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
The pull request has been merged as 43b1a3907d.
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date

No due date set.

Dependencies

This pull request currently doesn't have any dependencies.

Loading…
There is no content yet.