Add CI cache #75

Merged
rafael merged 2 commits from ci-cache into main 2025-06-18 21:55:23 +02:00
Collaborator

Fixes #62

Fixes #62
rafael added 1 commit 2025-06-12 14:41:23 +02:00
Add CI cache
All checks were successful
continuous-integration/drone/push Build is passing
6ecbe1e0ae
Author
Collaborator

@moritz Regarding "trusted" mode, I found this stackoverflow question which mentioned a DRONE_ADMIN environment variable. I couldn't find any reference regarding that env var in the docs, but here the docs say you can create an admin user using the DRONE_USER_CREATE environment variable. That should also work for existing users.

Then, after we have logged in using an admin account, the "trusted" setting should be visible here: https://drone.dev.local-it.cloud/local-it/mitgliederverwaltung/settings

@moritz Regarding "trusted" mode, I found [this stackoverflow question](https://stackoverflow.com/questions/49153218/drone-insufficient-privileges-to-use-privileged-mode) which mentioned a `DRONE_ADMIN` environment variable. I couldn't find any reference regarding that env var in the docs, but [here](https://docs.drone.io/server/user/admin/#create-the-primary-admin) the docs say you can create an admin user using the `DRONE_USER_CREATE` environment variable. That should also work for existing users. Then, after we have logged in using an admin account, the "trusted" setting should be visible here: https://drone.dev.local-it.cloud/local-it/mitgliederverwaltung/settings
Author
Collaborator

As an alternative, we can try using the meltwater-cache plugin with an object storage backend. That might be safer than enabling "trusted" mode, but would require some experimentation as the plugin's documentation is quite out of date.

As an alternative, we can try using the [meltwater-cache](https://github.com/drone-plugins/drone-meltwater-cache) plugin with an object storage backend. That might be safer than enabling "trusted" mode, but would require some experimentation as the plugin's documentation is quite out of date.
Owner

@rafael wrote in #75 (comment):

@moritz Regarding "trusted" mode, I found this stackoverflow question which mentioned a DRONE_ADMIN environment variable. I couldn't find any reference regarding that env var in the docs, but here the docs say you can create an admin user using the DRONE_USER_CREATE environment variable. That should also work for existing users.

Then, after we have logged in using an admin account, the "trusted" setting should be visible here: https://drone.dev.local-it.cloud/local-it/mitgliederverwaltung/settings

I enabled the trusted mode for this repo.

@rafael wrote in https://git.local-it.org/local-it/mitgliederverwaltung/pulls/75#issuecomment-11521: > @moritz Regarding "trusted" mode, I found [this stackoverflow question](https://stackoverflow.com/questions/49153218/drone-insufficient-privileges-to-use-privileged-mode) which mentioned a `DRONE_ADMIN` environment variable. I couldn't find any reference regarding that env var in the docs, but [here](https://docs.drone.io/server/user/admin/#create-the-primary-admin) the docs say you can create an admin user using the `DRONE_USER_CREATE` environment variable. That should also work for existing users. > > Then, after we have logged in using an admin account, the "trusted" setting should be visible here: https://drone.dev.local-it.cloud/local-it/mitgliederverwaltung/settings I enabled the `trusted` mode for this repo.
rafael force-pushed ci-cache from 6ecbe1e0ae to cafd028008 2025-06-18 11:54:56 +02:00 Compare
rafael force-pushed ci-cache from cafd028008 to 89831a257a 2025-06-18 12:22:28 +02:00 Compare
rafael force-pushed ci-cache from 89831a257a to c871e08155 2025-06-18 12:26:30 +02:00 Compare
rafael force-pushed ci-cache from c871e08155 to 59d7e46046 2025-06-18 12:27:35 +02:00 Compare
rafael force-pushed ci-cache from 59d7e46046 to b1e6a54e65 2025-06-18 13:38:22 +02:00 Compare
rafael force-pushed ci-cache from b1e6a54e65 to 2978dc443e 2025-06-18 13:46:20 +02:00 Compare
rafael changed title from WIP: Add CI cache to Add CI cache 2025-06-18 13:46:56 +02:00
rafael changed target branch from main to fix-ci-postgres-port 2025-06-18 13:46:57 +02:00
rafael force-pushed ci-cache from 2978dc443e to 0511511f09 2025-06-18 13:56:47 +02:00 Compare
rafael force-pushed ci-cache from 0511511f09 to bfcc6f94fd 2025-06-18 14:00:12 +02:00 Compare
rafael changed target branch from fix-ci-postgres-port to main 2025-06-18 14:01:19 +02:00
rafael force-pushed ci-cache from bfcc6f94fd to 7012f3ced6 2025-06-18 14:02:51 +02:00 Compare
rafael force-pushed ci-cache from 7012f3ced6 to 37ee818620 2025-06-18 14:23:59 +02:00 Compare
rafael force-pushed ci-cache from 37ee818620 to 6a1c869ea4 2025-06-18 14:37:05 +02:00 Compare
Author
Collaborator

This is now working :) Here's a successful run that took ~3 minutes: https://drone.dev.local-it.cloud/local-it/mitgliederverwaltung/272/1/4

I'm not sure why the commits are shown as not verified, git shows these commits as properly signed with the correct key on my local repository.

This is now working :) Here's a successful run that took ~3 minutes: https://drone.dev.local-it.cloud/local-it/mitgliederverwaltung/272/1/4 I'm not sure why the commits are shown as not verified, git shows these commits as properly signed with the correct key on my local repository.
rafael added 1 commit 2025-06-18 14:41:42 +02:00
fix(ci): Dont install dependencies again in test step
Some checks failed
continuous-integration/drone/push Build is failing
4315561ce4
rafael force-pushed ci-cache from 4315561ce4 to d54b226be5 2025-06-18 14:44:11 +02:00 Compare
Owner

looks fine for me. is it ready to be merged?

looks fine for me. is it ready to be merged?
Author
Collaborator

@moritz wrote in #75 (comment):

looks fine for me. is it ready to be merged?

Yes!

@moritz wrote in https://git.local-it.org/local-it/mitgliederverwaltung/pulls/75#issuecomment-11673: > looks fine for me. is it ready to be merged? Yes!
requested review from moritz 2025-06-18 21:55:10 +02:00
rafael merged commit 2e50e01e7f into main 2025-06-18 21:55:23 +02:00
rafael deleted branch ci-cache 2025-06-18 21:55:24 +02:00
Sign in to join this conversation.
No description provided.