Move to woodpecker CI
#1104
Merged
mmarif
merged 41 commits from qwerty287/GitNex:drone
into main
1 week ago
Reviewers
Request review
No reviewers
Labels
Requires and waits for changes in Gitea's API Backport
Bugfix ported to a release branch for point release Blocked
Waits for something else that must be solved first Brainstorming Breaking
Contains or will result in breaking changes Bug Cannot-reproduce Changelog CI
Related to the CI/CD Cleanup Confirmed Discussion Documentation Duplicate Enhancement External-dependecy F-droid Feature Frontport Good-first-issue Google-play Has-backport Improvement Invalid Investigate Long-term Major-release Minor-release Needs-backport Needs-cleanup Needs-feedback Needs-frontport Needs-help Performance Priority-critical Priority-high Priority-low Priority-medium Question Ready Refactor Regression Release Repository
Related to this repository and it's management Security Suggestion Summary Support Testing Translation UI/UX
Related to the user interface or experience Upstream Website
Related to the website Wontfix
This won't get fixed
Apply labels
Clear labels
API-dependency
Requires and waits for changes in Gitea's API Backport
Bugfix ported to a release branch for point release Blocked
Waits for something else that must be solved first Brainstorming Breaking
Contains or will result in breaking changes Bug Cannot-reproduce Changelog CI
Related to the CI/CD Cleanup Confirmed Discussion Documentation Duplicate Enhancement External-dependecy F-droid Feature Frontport Good-first-issue Google-play Has-backport Improvement Invalid Investigate Long-term Major-release Minor-release Needs-backport Needs-cleanup Needs-feedback Needs-frontport Needs-help Performance Priority-critical Priority-high Priority-low Priority-medium Question Ready Refactor Regression Release Repository
Related to this repository and it's management Security Suggestion Summary Support Testing Translation UI/UX
Related to the user interface or experience Upstream Website
Related to the website Wontfix
This won't get fixed
No Label
API-dependency
Backport
Blocked
Brainstorming
Breaking
Bug
Cannot-reproduce
Changelog
CI
Cleanup
Confirmed
Discussion
Documentation
Duplicate
Enhancement
External-dependecy
F-droid
Feature
Frontport
Good-first-issue
Google-play
Has-backport
Improvement
Invalid
Investigate
Long-term
Major-release
Minor-release
Needs-backport
Needs-cleanup
Needs-feedback
Needs-frontport
Needs-help
Performance
Priority-critical
Priority-high
Priority-low
Priority-medium
Question
Ready
Refactor
Regression
Release
Repository
Security
Suggestion
Summary
Support
Testing
Translation
UI/UX
Upstream
Website
Wontfix
Milestone
Set milestone
Clear milestone
No items
No Milestone
Projects
Clear projects
No project
Assignees
Assign users
Clear assignees
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.
No due date set.
Dependencies
This pull request currently doesn't have any dependencies.
Reference in new issue
There is no content yet.
Delete Branch 'qwerty287/GitNex:drone'
Deleting a branch is permanent. It CANNOT be undone. Continue?
No
Yes
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.
enabled ci ...
to to https://ci.codeberg.org/gitnex/GitNex/settings#secrets to add secrets
we should add a step running tests added in #1105
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)
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.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.
@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
@qwerty287 not sure what it will do, but enabled.
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.
https://codeberg.org/gitnex/GitNex/settings/hooks/1258
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?
Should work again.
environment:
OUTPUT: "signed.apk"
INSTANCE: "https://codeberg.org"
KS_FILE: "ci_keystore.jks"
This should be
gitnex_ci_keystore.jks
.43b1a3907d
into main 1 week agoReviewers
43b1a3907d
.