323 Commits
mika ... dev

Author SHA1 Message Date
5e4cea0bb3 Remove fmt.Println and add Zerolog logging system
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 56s
2024-11-11 20:35:17 +01:00
4ae6aa7a90 edit build.yml - edit metadata step
All checks were successful
Build and Push Docker Image / build_and_push (push) Successful in 1m35s
2024-04-03 11:31:27 +02:00
c784657da2 edit build.yml - add metadata step
All checks were successful
Build and Push Docker Image / build_and_push (push) Successful in 1m38s
2024-04-03 11:23:59 +02:00
66c87b16ff edit build.yml - back to base
All checks were successful
Build and Push Docker Image / build_and_push (push) Successful in 1m34s
2024-04-03 11:15:04 +02:00
284e3c918a edit build.yml - back to base
All checks were successful
Build and Push Docker Image / build_and_push (push) Successful in 1m36s
2024-04-03 11:08:35 +02:00
053066b511 edit build.yml - try if for tag
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 38s
2024-04-03 11:04:58 +02:00
b028120e47 edit build.yml - try if for tag
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 37s
2024-04-03 11:03:07 +02:00
d2a8c57274 edit build.yml - try if for tag
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 39s
2024-04-03 10:59:18 +02:00
140d366894 edit build.yml - edit flavor
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 36s
2024-04-03 10:55:13 +02:00
a70ef04ffd edit build.yml - edit flavor
All checks were successful
Build and Push Docker Image / build_and_push (push) Successful in 1m34s
2024-04-03 10:24:09 +02:00
4c787bdc86 edit build.yml - add flavor
All checks were successful
Build and Push Docker Image / build_and_push (push) Successful in 1m32s
2024-04-03 10:19:14 +02:00
ae04ab23fc edit build.yml - add buil on tags
All checks were successful
Build and Push Docker Image / build_and_push (push) Successful in 1m33s
2024-04-03 10:00:47 +02:00
e192d2253f edit folder .github to .gitea
All checks were successful
Build and Push Docker Image / build_and_push (push) Successful in 1m38s
2024-03-27 13:41:32 +01:00
d588fe2b67 comment postgres config & add mongodb config in config.go
All checks were successful
Build and Push Docker Image / build_and_push (push) Successful in 1m44s
2024-03-27 13:32:50 +01:00
2501dabdba Try Docker Buildx with Kubernetes driver
All checks were successful
Build and Push Docker Image / build_and_push (push) Successful in 1m35s
2024-03-24 23:12:54 +01:00
9486551ee5 Try Docker Buildx with Kubernetes driver
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 21s
2024-03-24 23:02:53 +01:00
170b599f54 Try repository token
All checks were successful
Build and Push Docker Image / checkout_repository (push) Successful in 1m30s
2024-03-24 20:14:28 +01:00
8891517866 Try repository token
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 5s
2024-03-24 20:04:50 +01:00
901faeadc3 Try repository token
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 5s
2024-03-24 20:00:26 +01:00
f469e1da01 test secrets
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 6s
2024-03-22 16:22:05 +01:00
c6c7cd72e4 test secrets
All checks were successful
Build and Push Docker Image / checkout_repository (push) Successful in 1m21s
2024-03-22 15:04:43 +01:00
9fe3d6b6bc test secrets
All checks were successful
Build and Push Docker Image / checkout_repository (push) Successful in 5s
2024-03-22 15:02:03 +01:00
4f3b3b12b3 test secrets
All checks were successful
Build and Push Docker Image / checkout_repository (push) Successful in 5s
2024-03-22 14:58:33 +01:00
8ae62e7aef test secrets
All checks were successful
Build and Push Docker Image / checkout_repository (push) Successful in 1m13s
2024-03-22 14:53:29 +01:00
461f5d1f5f test secrets
All checks were successful
Build and Push Docker Image / checkout_repository (push) Successful in 1m17s
2024-03-22 14:51:46 +01:00
b9f3c0e074 test secrets
All checks were successful
Build and Push Docker Image / checkout_repository (push) Successful in 1m19s
2024-03-22 14:48:34 +01:00
8c427b45bb test secrets
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 5s
2024-03-22 14:47:08 +01:00
5d78a88975 test secrets
All checks were successful
Build and Push Docker Image / checkout_repository (push) Successful in 1m16s
2024-03-22 14:40:06 +01:00
7728a7d0a4 test secrets
All checks were successful
Build and Push Docker Image / checkout_repository (push) Successful in 1m13s
2024-03-22 14:23:44 +01:00
d22c69542d test secrets
All checks were successful
Build and Push Docker Image / checkout_repository (push) Successful in 1m15s
2024-03-22 14:22:17 +01:00
d5ac13cc2e test secrets
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 5s
2024-03-22 14:18:53 +01:00
7e2210e5cc test secrets
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 5s
2024-03-22 14:18:29 +01:00
c91fbccf34 test secrets
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 5s
2024-03-22 14:17:28 +01:00
597e01d290 test secrets
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 5s
2024-03-22 14:16:48 +01:00
18e40b975d test secrets
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 5s
2024-03-22 14:15:16 +01:00
5493dca7ef test secrets
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 5s
2024-03-22 14:13:08 +01:00
d27c2a266a test secrets
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 5s
2024-03-22 14:12:07 +01:00
146eb44ffe test secrets
All checks were successful
Build and Push Docker Image / checkout_repository (push) Successful in 1m16s
2024-03-22 14:10:35 +01:00
cc1fee615b test secrets
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 4s
2024-03-22 14:07:59 +01:00
35e84a6121 test secrets
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 5s
2024-03-22 14:07:32 +01:00
39e4d265cb test secrets
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 5s
2024-03-22 14:05:23 +01:00
15649e452a test secrets 2024-03-22 14:03:52 +01:00
2c79e9eca6 test secrets 2024-03-22 14:02:39 +01:00
d950e799e1 test secrets
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 5s
2024-03-22 13:50:25 +01:00
f56de46ed9 test secrets
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 5s
2024-03-22 13:49:57 +01:00
6ca42da674 test secrets
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 5s
2024-03-22 13:49:19 +01:00
3fa71d8b2e test secrets
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 5s
2024-03-22 13:47:38 +01:00
6629c50aa5 test secrets
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 6s
2024-03-22 13:44:22 +01:00
ff11bd78b0 test secrets
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 5s
2024-03-22 13:43:50 +01:00
0c34321400 test secrets
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 5s
2024-03-22 13:43:12 +01:00
b6cec61b31 test secrets
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 5s
2024-03-22 13:39:27 +01:00
e7d9369929 test secrets
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 4s
2024-03-22 13:35:17 +01:00
f05ea0af06 test secrets
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 5s
2024-03-22 13:34:06 +01:00
c1c89c637c test secrets
All checks were successful
Build and Push Docker Image / checkout_repository (push) Successful in 1m36s
2024-03-22 13:32:09 +01:00
8663a8b400 test secrets
All checks were successful
Build and Push Docker Image / checkout_repository (push) Successful in 1m28s
2024-03-22 12:03:10 +01:00
744863873e test secrets
All checks were successful
Build and Push Docker Image / checkout_repository (push) Successful in 1m12s
2024-03-22 10:31:31 +01:00
dfd1c964d7 test secrets
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 5s
2024-03-22 10:30:09 +01:00
932e5ad90f test secrets
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 6s
2024-03-22 10:17:36 +01:00
fe0f6dd7f6 test secrets
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 5s
2024-03-22 10:15:14 +01:00
31ac6306c0 test secrets
All checks were successful
Build and Push Docker Image / checkout_repository (push) Successful in 1m18s
2024-03-22 10:12:44 +01:00
5a0bf30060 test secrets
All checks were successful
Build and Push Docker Image / checkout_repository (push) Successful in 1m29s
2024-03-22 10:10:24 +01:00
24e619b4a9 test secrets
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 5s
2024-03-22 10:09:38 +01:00
4917662c49 test secrets
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 5s
2024-03-22 10:07:57 +01:00
12b02788fc test secrets
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 5s
2024-03-22 10:06:50 +01:00
4fedd2a72f test secrets
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 6s
2024-03-22 10:05:07 +01:00
0c7d2f22b7 Try with Buildah
All checks were successful
Build and Push Docker Image / checkout_repository (push) Successful in 1m20s
2024-03-22 09:28:26 +01:00
7ad30a24cf Try with Buildah 2024-03-22 09:27:04 +01:00
4ce7c8d00f Try with Buildah
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 22s
2024-03-22 09:18:09 +01:00
7dd32f8e68 Try with Buildah
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 23s
2024-03-22 10:14:52 +01:00
632d99458a Try with Buildah
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 23s
2024-03-22 10:06:27 +01:00
f86693da90 Try with Buildah
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 21s
2024-03-22 08:51:34 +01:00
678d1cef20 Try with Buildah
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 23s
2024-03-22 08:47:28 +01:00
a14f418580 Try with Buildah
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 13s
2024-03-22 08:46:00 +01:00
3f1d407a8f Try with Kaniko
All checks were successful
Build and Push Docker Image / checkout_repository (push) Successful in 1m18s
2024-03-21 19:51:35 +01:00
de98447171 Try with Kaniko
All checks were successful
Build and Push Docker Image / checkout_repository (push) Successful in 1m54s
2024-03-21 19:49:00 +01:00
2ca47bd7a1 add kubernetes driver
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 31s
2024-03-21 19:30:24 +01:00
604322aa25 test
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 31s
2024-03-21 11:41:21 +01:00
a3ee7cc98e test
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 7s
2024-03-21 11:11:41 +01:00
e38fb54459 test
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 35s
2024-03-21 11:09:19 +01:00
13680dba9b test
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 54s
2024-03-21 11:07:04 +01:00
74366a8cdb test
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 7s
2024-03-21 11:00:24 +01:00
197510cda8 test
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 8s
2024-03-21 10:59:05 +01:00
974a8b071a test
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 7s
2024-03-21 10:58:17 +01:00
b253f4159e test
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 8s
2024-03-21 10:47:09 +01:00
0411673842 test
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 13s
2024-03-21 10:46:21 +01:00
122d0cf7a7 test
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 4s
2024-03-21 10:45:02 +01:00
23c399cf35 test
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 2s
2024-03-21 10:32:01 +01:00
a76e039e82 test
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 2s
2024-03-21 10:31:40 +01:00
e9b9dd889c test
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 3s
2024-03-21 10:25:16 +01:00
784173e9ee test
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 13s
2024-03-21 10:23:40 +01:00
a02870f2f8 test
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 2s
2024-03-20 13:27:21 +01:00
ca8c6319d5 test
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 6s
2024-03-20 13:22:16 +01:00
6f08957805 test
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 7s
2024-03-20 13:20:33 +01:00
b87f21d6f7 test
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 7s
2024-03-20 13:19:05 +01:00
ba05c496b2 test
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 8s
2024-03-20 13:18:41 +01:00
d456eb80d4 test
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 7s
2024-03-20 13:11:42 +01:00
7c4a3f7a37 test
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 7s
2024-03-20 13:09:55 +01:00
a6f7116e03 test
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 6s
2024-03-20 13:08:25 +01:00
22a5a692d0 test
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 7s
2024-03-20 13:08:05 +01:00
cf352c6911 test
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 6s
2024-03-20 13:05:54 +01:00
0c26ed9b08 test
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 7s
2024-03-20 13:05:11 +01:00
22647dcf11 test
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 7s
2024-03-20 13:03:41 +01:00
f21e6d2cef test
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 6s
2024-03-20 13:02:59 +01:00
6b1b4d6624 test
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 7s
2024-03-20 12:59:00 +01:00
379a7fa4ed test
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 4s
2024-03-20 12:56:28 +01:00
de604ac77b test
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 7s
2024-03-20 12:55:36 +01:00
b3fa9e3b38 test
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 7s
2024-03-20 12:53:16 +01:00
3f8fa2d6ab test
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 3s
2024-03-20 12:34:13 +01:00
d24ed53b45 test
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 6s
2024-03-20 12:32:40 +01:00
11497f8cc4 test
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 1s
2024-03-20 11:52:33 +01:00
c5c99dbe3c test
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 23s
2024-03-20 11:51:39 +01:00
428fa558e0 test
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 9s
2024-03-20 11:51:01 +01:00
ce9f17735c test
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 5s
2024-03-20 11:50:21 +01:00
bac39121bd test
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 0s
2024-03-20 11:46:03 +01:00
531ff72b9e test
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 5s
2024-03-20 11:42:44 +01:00
71a6df958e test
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 1s
2024-03-20 11:41:05 +01:00
0f41ecfce0 test
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 5s
2024-03-20 11:38:59 +01:00
2db156dbed test
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 11s
2024-03-20 11:34:30 +01:00
0998e825a4 test
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 2s
2024-03-20 11:25:23 +01:00
68e1589fd1 test
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 1s
2024-03-20 11:23:45 +01:00
d36abf1c23 test
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 4s
2024-03-20 11:21:00 +01:00
9bb366864a test
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 7s
2024-03-20 11:19:30 +01:00
aef4362b04 test
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 4s
2024-03-20 11:18:11 +01:00
b99dfde7e1 test
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 19s
2024-03-20 11:11:11 +01:00
af2767e9de test
All checks were successful
Build and Push Docker Image / checkout_repository (push) Successful in 24s
2024-03-20 11:09:32 +01:00
b7d0b6cda8 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / test (push) Failing after 10s
2024-03-15 13:56:02 +01:00
b4dfd1a173 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / test (push) Failing after 11s
2024-03-15 13:40:22 +01:00
d4eade0228 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / test (push) Failing after 10s
2024-03-15 12:08:09 +01:00
99d1e55fa8 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / test (push) Failing after 15s
2024-03-15 12:06:15 +01:00
11077fd56f test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / test (push) Failing after 5s
2024-03-15 12:03:46 +01:00
ddf002ee11 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / test (push) Failing after 1m16s
2024-03-15 12:01:12 +01:00
ac8e704ed7 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / test (push) Failing after 1m14s
2024-03-15 11:59:11 +01:00
fca47a69a3 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / test (push) Failing after 1m14s
2024-03-15 11:57:11 +01:00
151e86dbee test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / test (push) Failing after 26s
2024-03-15 11:56:23 +01:00
bd28920cdc test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / test (push) Failing after 6s
2024-03-15 11:52:45 +01:00
cebf885278 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / test (push) Failing after 16s
2024-03-15 11:50:38 +01:00
c6ec354d6d test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / test (push) Failing after 16s
2024-03-15 11:49:36 +01:00
09a72d4b44 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / test (push) Failing after 12s
2024-03-15 11:48:53 +01:00
f9fea0864a test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / test (push) Failing after 33s
2024-03-15 11:45:59 +01:00
09c7d11188 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / test (push) Failing after 13s
2024-03-15 11:45:26 +01:00
62a756d2f3 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / test (push) Failing after 9s
2024-03-15 11:44:59 +01:00
f1c77bfebf test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / test (push) Failing after 10s
2024-03-15 11:36:17 +01:00
e0f2693f09 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / test (push) Failing after 9s
2024-03-15 11:34:40 +01:00
c36af927be test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / test (push) Failing after 12s
2024-03-15 11:33:54 +01:00
2ad8530736 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / test (push) Failing after 11s
2024-03-15 11:32:17 +01:00
49dc3872c5 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / test (push) Failing after 11s
2024-03-15 11:31:54 +01:00
4222a348a4 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / test (push) Failing after 12s
2024-03-15 11:31:13 +01:00
618c9b9206 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / test (push) Failing after 13s
2024-03-15 11:15:55 +01:00
47b86968d4 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / test (push) Failing after 12s
2024-03-15 11:15:25 +01:00
4ef0c875af test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / test (push) Failing after 12s
2024-03-15 11:14:44 +01:00
0f6a65d1a4 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / test (push) Failing after 11s
2024-03-15 11:13:56 +01:00
379fb05841 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / test (push) Failing after 12s
2024-03-15 11:12:54 +01:00
99b72aa390 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / test (push) Failing after 11s
2024-03-15 11:11:55 +01:00
75b222a3c0 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / test (push) Failing after 15s
2024-03-15 11:10:23 +01:00
f971df6ead test workflow build and push on gitea registry 2024-03-15 11:09:43 +01:00
e45fc1b52e test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / test (push) Failing after 12s
2024-03-15 11:09:04 +01:00
42b48c4ce1 test workflow build and push on gitea registry 2024-03-15 11:07:15 +01:00
0d984243f8 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / test (push) Failing after 0s
2024-03-15 11:06:42 +01:00
7c18d78686 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / test (push) Failing after 12s
2024-03-15 11:04:51 +01:00
af31c9676b test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / test (push) Failing after 12s
2024-03-15 11:04:24 +01:00
cff757eff3 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / test (push) Failing after 12s
2024-03-15 11:01:55 +01:00
130f048eb1 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / test (push) Failing after 12s
2024-03-15 10:58:48 +01:00
b6a2edb179 test workflow build and push on gitea registry
All checks were successful
Build and Push Docker Image / test (push) Successful in 11s
2024-03-15 10:56:45 +01:00
71d7c3ce61 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / test (push) Failing after 11s
2024-03-15 10:55:34 +01:00
599f66d065 test workflow build and push on gitea registry
All checks were successful
Build and Push Docker Image / test (push) Successful in 7s
2024-03-15 10:54:26 +01:00
eb066ba888 test workflow build and push on gitea registry
All checks were successful
Build and Push Docker Image / test (push) Successful in 6s
2024-03-15 10:53:46 +01:00
9e70d3941d test workflow build and push on gitea registry
All checks were successful
Build and Push Docker Image / test (push) Successful in 3s
2024-03-15 10:52:24 +01:00
a9eb91bd83 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 7s
Build and Push Docker Image / login_docker_registry (push) Successful in 7s
Build and Push Docker Image / build_and_push_image (push) Failing after 3s
2024-03-15 09:57:38 +01:00
472796c444 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 8s
Build and Push Docker Image / login_docker_registry (push) Successful in 7s
Build and Push Docker Image / build_and_push_image (push) Failing after 4s
2024-03-15 09:57:01 +01:00
0a43b72819 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 8s
Build and Push Docker Image / login_docker_registry (push) Successful in 6s
Build and Push Docker Image / build_and_push_image (push) Failing after 3s
2024-03-15 09:17:27 +01:00
5f757210ac test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 7s
Build and Push Docker Image / login_docker_registry (push) Successful in 6s
Build and Push Docker Image / build_and_push_image (push) Failing after 3s
2024-03-15 09:11:10 +01:00
d3bdfb24b9 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 8s
Build and Push Docker Image / login_docker_registry (push) Successful in 7s
Build and Push Docker Image / clone_repository (push) Successful in 5s
Build and Push Docker Image / build_and_push_image (push) Failing after 4s
2024-03-15 09:08:38 +01:00
f4b1d75e96 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 6s
Build and Push Docker Image / login_docker_registry (push) Successful in 6s
Build and Push Docker Image / clone_repository (push) Failing after 1m43s
Build and Push Docker Image / build_and_push_image (push) Has been skipped
2024-03-15 09:00:36 +01:00
2482c64d1c test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 5s
Build and Push Docker Image / login_docker_registry (push) Successful in 6s
Build and Push Docker Image / clone_repository (push) Failing after 6s
Build and Push Docker Image / build_and_push_image (push) Has been skipped
2024-03-15 08:55:56 +01:00
740d14894e test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 8s
Build and Push Docker Image / login_docker_registry (push) Successful in 7s
Build and Push Docker Image / clone_repository (push) Failing after 4s
Build and Push Docker Image / build_and_push_image (push) Has been skipped
2024-03-15 08:54:28 +01:00
68c8941157 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 6s
Build and Push Docker Image / login_docker_registry (push) Successful in 6s
Build and Push Docker Image / clone_repository (push) Failing after 3s
Build and Push Docker Image / build_and_push_image (push) Has been skipped
2024-03-13 15:35:28 +01:00
42028219ba test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Failing after 5s
Build and Push Docker Image / login_docker_registry (push) Successful in 6s
Build and Push Docker Image / clone_repository (push) Failing after 4s
Build and Push Docker Image / build_and_push_image (push) Has been skipped
2024-03-13 15:34:38 +01:00
546628213f test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 7s
Build and Push Docker Image / login_docker_registry (push) Successful in 5s
Build and Push Docker Image / clone_repository (push) Failing after 3s
Build and Push Docker Image / build_and_push_image (push) Has been skipped
2024-03-13 15:30:12 +01:00
bc318e5b45 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 7s
Build and Push Docker Image / login_docker_registry (push) Successful in 7s
Build and Push Docker Image / clone_repository (push) Successful in 3s
Build and Push Docker Image / build_and_push_image (push) Failing after 3s
2024-03-13 15:29:19 +01:00
a525721aa0 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 6s
Build and Push Docker Image / login_docker_registry (push) Successful in 5s
Build and Push Docker Image / clone_repository (push) Successful in 3s
Build and Push Docker Image / build_and_push_image (push) Failing after 3s
2024-03-13 15:25:39 +01:00
8fa6f50e38 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 6s
Build and Push Docker Image / login_docker_registry (push) Successful in 5s
Build and Push Docker Image / clone_repository (push) Successful in 4s
Build and Push Docker Image / build_and_push_image (push) Failing after 4s
2024-03-13 15:22:20 +01:00
54bc0245a9 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 5s
Build and Push Docker Image / login_docker_registry (push) Successful in 5s
Build and Push Docker Image / clone_repository (push) Successful in 4s
Build and Push Docker Image / build_and_push_image (push) Failing after 4s
2024-03-13 15:21:43 +01:00
b135171322 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 6s
Build and Push Docker Image / login_docker_registry (push) Successful in 5s
Build and Push Docker Image / clone_repository (push) Successful in 3s
Build and Push Docker Image / build_and_push_image (push) Failing after 3s
2024-03-13 15:18:48 +01:00
431233a1df test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 6s
Build and Push Docker Image / login_docker_registry (push) Successful in 5s
Build and Push Docker Image / clone_repository (push) Successful in 3s
Build and Push Docker Image / build_and_push_image (push) Failing after 3s
2024-03-13 15:16:48 +01:00
108e1f576e test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 6s
Build and Push Docker Image / login_docker_registry (push) Successful in 5s
Build and Push Docker Image / clone_repository (push) Failing after 3s
Build and Push Docker Image / build_and_push_image (push) Has been skipped
2024-03-13 15:16:16 +01:00
a95f9a49dd test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 6s
Build and Push Docker Image / login_docker_registry (push) Successful in 5s
Build and Push Docker Image / clone_repository (push) Successful in 3s
Build and Push Docker Image / build_and_push_image (push) Failing after 4s
2024-03-13 15:15:10 +01:00
a8ee047d44 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 5s
Build and Push Docker Image / login_docker_registry (push) Successful in 5s
Build and Push Docker Image / clone_repository (push) Successful in 4s
Build and Push Docker Image / build_and_push_image (push) Failing after 4s
2024-03-13 15:14:08 +01:00
60aab2efa3 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 6s
Build and Push Docker Image / login_docker_registry (push) Successful in 5s
Build and Push Docker Image / clone_repository (push) Successful in 4s
Build and Push Docker Image / build_and_push_image (push) Failing after 4s
2024-03-13 15:13:25 +01:00
22db0f738f test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 6s
Build and Push Docker Image / login_docker_registry (push) Successful in 5s
Build and Push Docker Image / clone_repository (push) Successful in 3s
Build and Push Docker Image / build_and_push_image (push) Failing after 4s
2024-03-13 15:12:45 +01:00
cb2ce7bc1b test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 6s
Build and Push Docker Image / login_docker_registry (push) Successful in 6s
Build and Push Docker Image / clone_repository (push) Successful in 3s
Build and Push Docker Image / build_and_push_image (push) Failing after 4s
2024-03-13 15:10:15 +01:00
747344ce36 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 6s
Build and Push Docker Image / login_docker_registry (push) Successful in 6s
Build and Push Docker Image / clone_repository (push) Successful in 7s
Build and Push Docker Image / build_and_push_image (push) Failing after 5s
2024-03-13 15:07:27 +01:00
10039d1b4c test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 6s
Build and Push Docker Image / login_docker_registry (push) Successful in 6s
Build and Push Docker Image / build_and_push_image (push) Failing after 4s
2024-03-13 14:59:59 +01:00
956b4a2d84 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 6s
Build and Push Docker Image / login_docker_registry (push) Successful in 6s
Build and Push Docker Image / build_and_push_image (push) Failing after 4s
2024-03-13 14:56:45 +01:00
e2558ec3cb test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 5s
Build and Push Docker Image / login_docker_registry (push) Successful in 5s
Build and Push Docker Image / build_and_push_image (push) Failing after 3s
2024-03-13 14:55:57 +01:00
ac1ea1ba2c test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 6s
Build and Push Docker Image / login_docker_registry (push) Successful in 5s
Build and Push Docker Image / build_and_push_image (push) Failing after 4s
2024-03-13 14:55:11 +01:00
32b948350a test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 6s
Build and Push Docker Image / login_docker_registry (push) Successful in 5s
Build and Push Docker Image / build_and_push_image (push) Failing after 8s
2024-03-13 14:54:28 +01:00
0202348b0c test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 6s
Build and Push Docker Image / login_docker_registry (push) Successful in 6s
Build and Push Docker Image / build_and_push_image (push) Failing after 7s
2024-03-13 14:53:28 +01:00
e5cb07c01e test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 5s
Build and Push Docker Image / login_docker_registry (push) Successful in 6s
Build and Push Docker Image / build_and_push_image (push) Failing after 8s
2024-03-13 14:52:04 +01:00
86eddf894c test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 6s
Build and Push Docker Image / login_docker_registry (push) Successful in 6s
Build and Push Docker Image / build_and_push_image (push) Failing after 6s
2024-03-13 14:50:42 +01:00
ada0e51864 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 6s
Build and Push Docker Image / login_docker_registry (push) Successful in 5s
Build and Push Docker Image / build_and_push_image (push) Failing after 6s
2024-03-13 14:49:02 +01:00
aa1f12db77 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 5s
Build and Push Docker Image / login_docker_registry (push) Successful in 6s
Build and Push Docker Image / build_and_push_image (push) Failing after 6s
2024-03-13 14:47:32 +01:00
9cbce9c764 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 6s
Build and Push Docker Image / build_and_push_image (push) Failing after 6s
2024-03-13 14:46:07 +01:00
ad69095f72 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 6s
Build and Push Docker Image / login_docker_registry (push) Successful in 6s
Build and Push Docker Image / build_and_push_image (push) Failing after 4s
2024-03-13 14:44:01 +01:00
414ba0809d test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 6s
Build and Push Docker Image / login_docker_registry (push) Successful in 6s
Build and Push Docker Image / build_and_push_image (push) Failing after 1m8s
2024-03-13 14:40:21 +01:00
74bfd69f00 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 5s
Build and Push Docker Image / login_docker_registry (push) Successful in 5s
Build and Push Docker Image / build_and_push_image (push) Failing after 1m20s
2024-03-13 14:34:48 +01:00
2cc271561d test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 5s
Build and Push Docker Image / login_docker_registry (push) Successful in 6s
Build and Push Docker Image / build_and_push_image (push) Failing after 23s
2024-03-13 14:33:47 +01:00
9b836bf4c8 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 6s
Build and Push Docker Image / login_docker_registry (push) Successful in 5s
Build and Push Docker Image / build_and_push_image (push) Failing after 9s
2024-03-13 14:32:58 +01:00
eb7ff92322 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 5s
Build and Push Docker Image / login_docker_registry (push) Successful in 6s
Build and Push Docker Image / build_and_push_image (push) Failing after 9s
2024-03-13 14:26:09 +01:00
9a87fe7943 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 6s
Build and Push Docker Image / login_docker_registry (push) Successful in 5s
Build and Push Docker Image / build_and_push_image (push) Failing after 47s
2024-03-13 14:22:29 +01:00
bb21558ee1 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 5s
Build and Push Docker Image / login_docker_registry (push) Successful in 6s
Build and Push Docker Image / build_and_push_image (push) Failing after 48s
2024-03-13 14:20:27 +01:00
eabb4bdae8 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 5s
Build and Push Docker Image / login_docker_registry (push) Successful in 6s
Build and Push Docker Image / build_and_push_image (push) Failing after 48s
2024-03-13 14:17:44 +01:00
7eabb4f9f5 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 5s
Build and Push Docker Image / login_docker_registry (push) Successful in 6s
Build and Push Docker Image / build_and_push_image (push) Failing after 48s
2024-03-13 14:15:46 +01:00
386a848291 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 6s
Build and Push Docker Image / login_docker_registry (push) Successful in 5s
Build and Push Docker Image / build_and_push_image (push) Failing after 47s
2024-03-13 14:14:08 +01:00
fb17476487 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 5s
Build and Push Docker Image / login_docker_registry (push) Successful in 6s
Build and Push Docker Image / build_and_push_image (push) Failing after 38s
2024-03-13 14:12:17 +01:00
c2dcb594b2 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 6s
Build and Push Docker Image / login_docker_registry (push) Successful in 5s
Build and Push Docker Image / build_and_push_image (push) Failing after 8s
2024-03-13 14:11:27 +01:00
2cbe3eb6d4 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 5s
Build and Push Docker Image / login_docker_registry (push) Successful in 6s
Build and Push Docker Image / build_and_push_image (push) Failing after 13s
2024-03-13 14:06:06 +01:00
d06d7a5ef3 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 6s
Build and Push Docker Image / login_docker_registry (push) Successful in 5s
Build and Push Docker Image / build_and_push_image (push) Failing after 36s
2024-03-13 14:02:52 +01:00
558251f5f3 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 6s
Build and Push Docker Image / login_docker_registry (push) Successful in 5s
Build and Push Docker Image / prepare_environment (push) Failing after 1m55s
Build and Push Docker Image / build_and_push_image (push) Failing after 10s
2024-03-13 12:44:16 +01:00
1a283360aa test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 5s
Build and Push Docker Image / login_docker_registry (push) Successful in 6s
Build and Push Docker Image / prepare_environment (push) Successful in 9s
Build and Push Docker Image / build_and_push_image (push) Failing after 4s
2024-03-13 12:40:02 +01:00
4436c6ad5e test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 5s
Build and Push Docker Image / login_docker_registry (push) Successful in 6s
Build and Push Docker Image / build_and_push_image (push) Failing after 37s
2024-03-13 12:36:13 +01:00
76011f9644 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 5s
Build and Push Docker Image / login_docker_registry (push) Successful in 5s
Build and Push Docker Image / build_and_push_image (push) Failing after 4s
2024-03-13 12:33:34 +01:00
874e18e6cc test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 5s
Build and Push Docker Image / login_docker_registry (push) Successful in 5s
Build and Push Docker Image / build_and_push_image (push) Failing after 3s
2024-03-13 12:32:45 +01:00
0561fdf487 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 7s
Build and Push Docker Image / login_docker_registry (push) Successful in 5s
Build and Push Docker Image / build_and_push_image (push) Failing after 3s
2024-03-13 12:31:39 +01:00
414e9db9cf test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 6s
Build and Push Docker Image / login_docker_registry (push) Successful in 6s
Build and Push Docker Image / build_and_push_image (push) Failing after 4s
2024-03-13 12:26:43 +01:00
2259eee40b test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 6s
Build and Push Docker Image / login_docker_registry (push) Successful in 5s
Build and Push Docker Image / build_and_push_image (push) Failing after 3s
2024-03-13 12:22:15 +01:00
895f0f4852 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 5s
Build and Push Docker Image / login_docker_registry (push) Successful in 6s
Build and Push Docker Image / build_and_push_image (push) Failing after 3s
2024-03-13 12:20:08 +01:00
d2624cea51 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 5s
Build and Push Docker Image / login_docker_registry (push) Successful in 5s
Build and Push Docker Image / build_and_push_image (push) Failing after 2s
2024-03-13 12:18:23 +01:00
e846f5adf3 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 6s
Build and Push Docker Image / login_docker_registry (push) Successful in 5s
Build and Push Docker Image / build_and_push_image (push) Failing after 3s
2024-03-13 12:16:26 +01:00
6d9d24f643 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 6s
Build and Push Docker Image / login_docker_registry (push) Successful in 5s
Build and Push Docker Image / build_and_push_image (push) Failing after 3s
2024-03-13 12:14:58 +01:00
c42be42302 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 6s
Build and Push Docker Image / login_docker_registry (push) Successful in 6s
Build and Push Docker Image / build_and_push_image (push) Failing after 2s
2024-03-13 12:14:10 +01:00
73b7f8f907 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 6s
Build and Push Docker Image / login_docker_registry (push) Successful in 5s
Build and Push Docker Image / build_and_push_image (push) Failing after 3s
2024-03-13 12:12:43 +01:00
2433a4186c test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 5s
Build and Push Docker Image / login_docker_registry (push) Successful in 6s
Build and Push Docker Image / build_and_push_image (push) Failing after 9s
2024-03-13 12:11:49 +01:00
e16600ddd8 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 6s
Build and Push Docker Image / login_docker_registry (push) Successful in 6s
Build and Push Docker Image / build_and_push_image (push) Failing after 3s
2024-03-13 12:08:17 +01:00
c073ae6919 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 6s
Build and Push Docker Image / login_docker_registry (push) Successful in 5s
Build and Push Docker Image / build_and_push_image (push) Failing after 3s
2024-03-13 12:03:55 +01:00
93d220759d test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 5s
Build and Push Docker Image / login_docker_registry (push) Failing after 5s
Build and Push Docker Image / build_and_push_image (push) Failing after 3s
2024-03-13 12:02:51 +01:00
5a92886103 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 6s
Build and Push Docker Image / login_docker_registry (push) Failing after 5s
Build and Push Docker Image / build_and_push_image (push) Failing after 3s
2024-03-13 12:01:42 +01:00
acb9b06f2a test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 6s
Build and Push Docker Image / build_and_push_image (push) Failing after 5s
2024-03-13 11:57:22 +01:00
538d39b70a test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 5s
Build and Push Docker Image / build_and_push_image (push) Failing after 6s
2024-03-13 11:56:39 +01:00
cfbe46b95b test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 5s
Build and Push Docker Image / build_and_push_image (push) Failing after 1s
2024-03-13 11:55:53 +01:00
3d2cdde8e3 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 5s
Build and Push Docker Image / build_and_push_image (push) Failing after 10s
2024-03-13 11:54:56 +01:00
8b1846d16a test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / checkout_repository (push) Successful in 6s
Build and Push Docker Image / build_and_push_image (push) Failing after 9s
2024-03-13 11:52:52 +01:00
20bea61613 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 8s
2024-03-13 11:48:27 +01:00
d70449602d test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 2s
2024-03-13 11:47:43 +01:00
87ea725e51 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 12s
2024-03-13 11:46:36 +01:00
ef6f214cf6 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 20s
2024-03-13 11:43:28 +01:00
54c5b1e334 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 3s
2024-03-13 11:38:17 +01:00
50bb477493 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 3s
2024-03-13 11:37:46 +01:00
1c3be9f998 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 16s
2024-03-13 11:24:30 +01:00
255edf3390 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 11s
2024-03-13 11:23:49 +01:00
cc4629bbbd test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 16s
2024-03-13 10:18:33 +01:00
75050500b3 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 13s
2024-03-13 10:17:52 +01:00
96e0debef2 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 2s
2024-03-13 10:17:28 +01:00
dd9ea96f58 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 15s
2024-03-13 10:14:26 +01:00
703bbaf199 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Has been cancelled
2024-03-13 10:04:14 +01:00
0c3e7f8c45 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 49s
2024-03-13 09:31:16 +01:00
8cf1414944 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 44s
2024-03-13 09:21:01 +01:00
d5b575d9f9 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 42s
2024-03-13 09:16:22 +01:00
8f6dab04dc test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 47s
2024-03-13 09:10:10 +01:00
ecb4e5e219 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 20s
2024-03-13 09:08:57 +01:00
dba7d992d4 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 16s
2024-03-13 09:04:16 +01:00
d15a8be61a test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 38s
2024-03-08 17:34:19 +01:00
e02d969e52 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 42s
2024-03-08 17:32:22 +01:00
6b25143194 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 40s
2024-03-08 17:28:17 +01:00
066fe76a79 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 38s
2024-03-08 17:24:43 +01:00
afd4c41628 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 41s
2024-03-08 17:23:20 +01:00
5f3a9c4b89 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 37s
2024-03-08 17:19:36 +01:00
c7e3b96483 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 15s
2024-03-08 17:18:13 +01:00
001db0ec88 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 15s
2024-03-08 17:07:04 +01:00
f65721edf9 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 13s
2024-03-08 17:02:19 +01:00
e1f50d20c8 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 12s
2024-03-08 17:00:56 +01:00
cd7aa0f78e test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 12s
2024-03-08 16:58:32 +01:00
e933481eb3 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 14s
2024-03-08 16:53:28 +01:00
8865c48bb7 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 1m1s
2024-03-08 09:39:38 +01:00
6c7d67911a test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 54s
2024-03-08 09:26:30 +01:00
235e8c3ab5 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 56s
2024-03-08 09:25:25 +01:00
af62a79fcc test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 58s
2024-03-07 18:15:06 +01:00
ca65504097 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 9s
2024-03-07 18:12:12 +01:00
13af4fc1ff test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 54s
2024-03-07 18:09:01 +01:00
cbe36e0a9b test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 8s
2024-03-07 18:07:44 +01:00
e8b11218ad test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 8s
2024-03-07 18:07:23 +01:00
9745461048 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 54s
2024-03-07 18:01:45 +01:00
021c70808e test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 55s
2024-03-07 17:58:46 +01:00
04345ef47c test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 52s
2024-03-07 17:56:58 +01:00
76812b32d2 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 52s
2024-03-07 17:55:23 +01:00
17d0ee7f52 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 38s
2024-03-07 17:44:15 +01:00
374cc415b5 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 1m3s
2024-03-07 17:36:01 +01:00
311709f22f test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 31s
2024-03-07 17:33:02 +01:00
4408f007ef test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 44s
2024-03-07 17:31:28 +01:00
77118af695 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 34s
2024-03-07 17:30:38 +01:00
7d37028d93 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 23s
2024-03-07 17:29:54 +01:00
05298cf4b9 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 14s
2024-03-07 17:28:43 +01:00
8943b0aefa test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 21s
2024-03-07 09:24:08 +01:00
11a8839fcd test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 34s
2024-03-07 09:22:20 +01:00
02229478ec test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 36s
2024-03-07 09:14:48 +01:00
576e9f5774 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 35s
2024-03-07 09:13:11 +01:00
b30b9a6247 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 43s
2024-03-07 09:09:26 +01:00
c15d7469ba test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 43s
2024-03-07 09:08:08 +01:00
de14e3c440 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 43s
2024-03-07 09:06:06 +01:00
cb5b30bc47 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 8s
2024-03-07 09:01:16 +01:00
4535715db1 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 43s
2024-03-07 08:58:10 +01:00
08ec14cafe test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 35s
2024-03-07 08:56:32 +01:00
334cf422b1 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 49s
2024-03-06 17:41:04 +01:00
610573393c test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 40s
2024-03-06 16:26:01 +01:00
54ba2cf466 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 48s
2024-03-06 15:01:33 +01:00
82f7e98e94 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 57s
2024-03-06 14:59:01 +01:00
cdeaf22a92 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 40s
2024-03-06 12:21:08 +01:00
3ffca66344 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 38s
2024-03-06 12:20:03 +01:00
b1fbc33792 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Has been cancelled
2024-03-06 12:19:37 +01:00
24e89bd151 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 9s
2024-03-06 12:19:13 +01:00
4cf7fb9eba test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 11s
2024-03-06 12:16:12 +01:00
c89d6f0e00 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 1s
2024-03-06 12:16:03 +01:00
8030c13ff7 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 42s
2024-03-06 12:08:14 +01:00
883f678c1b test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 39s
2024-03-06 12:06:57 +01:00
d84a8594b4 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 37s
2024-03-06 12:05:37 +01:00
ffba1d1cce test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 39s
2024-03-06 12:03:50 +01:00
7be48ecdd8 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 39s
2024-03-06 11:59:35 +01:00
e49374606b test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 40s
2024-03-06 11:56:57 +01:00
240504349a test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 36s
2024-03-06 11:55:32 +01:00
6f70a042e1 test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 1m11s
2024-03-06 11:47:40 +01:00
316ea97e7e test workflow build and push on gitea registry 2024-03-06 11:46:42 +01:00
017beaf722 test Gitea actions
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 36s
2024-03-06 11:16:39 +01:00
6a74c5166e Merge branch 'dev' of https://git.coopgo.io/coopgo-platform/mobility-accounts into dev 2023-11-27 10:47:48 +01:00
6f9d57c6d7 run go mod tidy 2023-08-21 14:58:18 +02:00
13 changed files with 197 additions and 67 deletions

View File

@@ -0,0 +1,82 @@
name: Build and Push Docker Image
on:
push:
tags:
- '*'
branches:
- main
- dev
jobs:
build_and_push:
runs-on: ubuntu-latest
steps:
- name: Install Docker
run: |
apt-get update
apt-get install -y docker.io
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set Kubernetes Context
uses: azure/k8s-set-context@v4
with:
method: kubeconfig
kubeconfig: ${{secrets.buildx_kubeconfig}}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
driver: kubernetes
driver-opts: |
namespace=gitea
- name: Login to Docker Registry
uses: docker/login-action@v3
with:
registry: git.coopgo.io
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Extract metadata (tags, labels) for Docker image
id: metadata
uses: docker/metadata-action@v3
with:
images: git.coopgo.io/${{gitea.repository}}
tags: |
type=ref,event=branch
type=ref,event=tag
type=ref,event=pr
flavor: |
latest=auto
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: |
${{ steps.metadata.outputs.tags }}
build-args: |
ACCESS_TOKEN_USR=${{gitea.actor}}
ACCESS_TOKEN_PWD=${{gitea.token}}
# BUILD WITH KANIKO
# - name: Kaniko build and push
# uses: aevea/action-kaniko@master
# with:
# build_file: Dockerfile
# registry: git.coopgo.io
# username: ${{secrets.registry_user}}
# password: ${{secrets.registry_token}}
# image: ${{gitea.repository}}
# tag: ${{gitea.ref_name}}
# cache: true
# cache_registry: git.coopgo.io/${{gitea.repository}}/cache
# extra-args: |
# ACCESS_TOKEN_USR=${{gitea.actor}}
# ACCESS_TOKEN_PWD=${{gitea.token}}

View File

@@ -7,23 +7,38 @@ import (
) )
func ReadConfig() (*viper.Viper, error) { func ReadConfig() (*viper.Viper, error) {
// defaults := map[string]any{
// "name": "COOPGO Mobility Accounts",
// "dev_env": false,
// "storage": map[string]any{
// "db": map[string]any{
// "type": "psql",
// "psql": map[string]any{
// "user": "postgres",
// "password": "postgres",
// "host": "localhost",
// "port": "5432",
// "dbname": "coopgo_platform",
// "sslmode": "disable",
// "schema": "mobilityaccounts",
// "tables": map[string]any{
// "accounts": "accounts",
// "accounts_auth_local": "accounts_auth_local",
// },
// },
// },
defaults := map[string]any{ defaults := map[string]any{
"name": "COOPGO Mobility Accounts", "name": "COOPGO Mobility Accounts",
"dev_env": false, "dev_env": false,
"storage": map[string]any{ "storage": map[string]any{
"db": map[string]any{ "db": map[string]any{
"type": "psql", "type": "mongodb",
"psql": map[string]any{ "mongodb": map[string]any{
"user": "postgres", "host": "localhost",
"password": "postgres", "port": "27017",
"host": "localhost", "db_name": "coopgo_platform",
"port": "5432", "collections": map[string]any{
"dbname": "coopgo_platform", "users": "users",
"sslmode": "disable",
"schema": "mobilityaccounts",
"tables": map[string]any{
"accounts": "accounts",
"accounts_auth_local": "accounts_auth_local",
}, },
}, },
}, },

View File

@@ -3,23 +3,26 @@ package main
import ( import (
"context" "context"
"encoding/json" "encoding/json"
"fmt"
"io/ioutil" "io/ioutil"
"os" "os"
"git.coopgo.io/coopgo-platform/mobility-accounts/grpcapi" "git.coopgo.io/coopgo-platform/mobility-accounts/grpcapi"
"git.coopgo.io/coopgo-platform/mobility-accounts/storage" "git.coopgo.io/coopgo-platform/mobility-accounts/storage"
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
"google.golang.org/grpc" "google.golang.org/grpc"
) )
func main() { func main() {
zerolog.TimeFieldFormat = zerolog.TimeFormatUnix
log.Logger = log.Output(zerolog.ConsoleWriter{Out: os.Stderr})
if len(os.Args) < 2 { if len(os.Args) < 2 {
fmt.Println("missing JSON file path") log.Error().Msg("missing JSON file path")
return return
} }
conn, err := grpc.Dial("dns:///localhost:8090", grpc.WithInsecure(), grpc.WithDefaultServiceConfig(`{"loadBalancingPolicy":"round_robin"}`)) conn, err := grpc.Dial("dns:///localhost:8090", grpc.WithInsecure(), grpc.WithDefaultServiceConfig(`{"loadBalancingPolicy":"round_robin"}`))
if err != nil { if err != nil {
panic(err) log.Panic().Err(err).Msg("Cannot dial local server")
} }
client := grpcapi.NewMobilityAccountsClient(conn) client := grpcapi.NewMobilityAccountsClient(conn)
@@ -46,5 +49,5 @@ func main() {
panic(err) panic(err)
} }
fmt.Println(string(jsonresponse)) log.Debug().Str("response", string(jsonresponse)).Msg("JSOn response")
} }

7
go.mod
View File

@@ -10,6 +10,7 @@ require (
github.com/lib/pq v1.10.2 github.com/lib/pq v1.10.2
github.com/mitchellh/mapstructure v1.5.0 github.com/mitchellh/mapstructure v1.5.0
github.com/ory/fosite v0.42.2 github.com/ory/fosite v0.42.2
github.com/rs/zerolog v1.33.0
github.com/santhosh-tekuri/jsonschema/v5 v5.0.0 github.com/santhosh-tekuri/jsonschema/v5 v5.0.0
github.com/spf13/viper v1.15.0 github.com/spf13/viper v1.15.0
github.com/stretchr/testify v1.8.2 github.com/stretchr/testify v1.8.2
@@ -27,7 +28,7 @@ require (
github.com/asaskevich/govalidator v0.0.0-20200428143746-21a406dcc535 // indirect github.com/asaskevich/govalidator v0.0.0-20200428143746-21a406dcc535 // indirect
github.com/cespare/xxhash v1.1.0 // indirect github.com/cespare/xxhash v1.1.0 // indirect
github.com/coreos/go-semver v0.3.0 // indirect github.com/coreos/go-semver v0.3.0 // indirect
github.com/coreos/go-systemd/v22 v22.3.2 // indirect github.com/coreos/go-systemd/v22 v22.5.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect github.com/davecgh/go-spew v1.1.1 // indirect
github.com/dgraph-io/ristretto v0.0.3 // indirect github.com/dgraph-io/ristretto v0.0.3 // indirect
github.com/fsnotify/fsnotify v1.6.0 // indirect github.com/fsnotify/fsnotify v1.6.0 // indirect
@@ -43,6 +44,8 @@ require (
github.com/inconshreveable/mousetrap v1.0.0 // indirect github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/klauspost/compress v1.13.6 // indirect github.com/klauspost/compress v1.13.6 // indirect
github.com/magiconair/properties v1.8.7 // indirect github.com/magiconair/properties v1.8.7 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/mattn/goveralls v0.0.6 // indirect github.com/mattn/goveralls v0.0.6 // indirect
github.com/mitchellh/go-wordwrap v0.0.0-20150314170334-ad45545899c7 // indirect github.com/mitchellh/go-wordwrap v0.0.0-20150314170334-ad45545899c7 // indirect
github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 // indirect github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 // indirect
@@ -74,7 +77,7 @@ require (
go.uber.org/zap v1.21.0 // indirect go.uber.org/zap v1.21.0 // indirect
golang.org/x/net v0.6.0 // indirect golang.org/x/net v0.6.0 // indirect
golang.org/x/sync v0.1.0 // indirect golang.org/x/sync v0.1.0 // indirect
golang.org/x/sys v0.5.0 // indirect golang.org/x/sys v0.27.0 // indirect
golang.org/x/text v0.8.0 // indirect golang.org/x/text v0.8.0 // indirect
golang.org/x/tools v0.6.0 // indirect golang.org/x/tools v0.6.0 // indirect
google.golang.org/genproto v0.0.0-20221227171554-f9683d7f8bef // indirect google.golang.org/genproto v0.0.0-20221227171554-f9683d7f8bef // indirect

21
go.sum
View File

@@ -120,8 +120,9 @@ github.com/coreos/go-semver v0.3.0 h1:wkHLiw0WNATZnSG7epLsujiMCgPAc9xhjJ4tgnAxmf
github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk=
github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4=
github.com/coreos/go-systemd v0.0.0-20190719114852-fd7a80b32e1f/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= github.com/coreos/go-systemd v0.0.0-20190719114852-fd7a80b32e1f/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4=
github.com/coreos/go-systemd/v22 v22.3.2 h1:D9/bQk5vlXQFZ6Kwuu6zaiXJ9oTPe68++AzAJc1DzSI=
github.com/coreos/go-systemd/v22 v22.3.2/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/coreos/go-systemd/v22 v22.3.2/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc=
github.com/coreos/go-systemd/v22 v22.5.0 h1:RrqgGjYQKalulkV8NGVIfkXQf6YYmOyiJKk8iXXhfZs=
github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc=
github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA=
github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwcJI5acqYI6dE= github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwcJI5acqYI6dE=
github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
@@ -761,6 +762,8 @@ github.com/mattn/go-colorable v0.1.1/go.mod h1:FuOcm+DKB9mbwrcAfNl7/TZVBZ6rcncea
github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE=
github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE=
github.com/mattn/go-colorable v0.1.6/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-colorable v0.1.6/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc=
github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA=
github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg=
github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4=
github.com/mattn/go-isatty v0.0.5/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= github.com/mattn/go-isatty v0.0.5/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s=
github.com/mattn/go-isatty v0.0.7/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= github.com/mattn/go-isatty v0.0.7/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s=
@@ -768,6 +771,10 @@ github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hd
github.com/mattn/go-isatty v0.0.9/go.mod h1:YNRxwqDuOph6SZLI9vUUz6OYw3QyUt7WiY2yME+cCiQ= github.com/mattn/go-isatty v0.0.9/go.mod h1:YNRxwqDuOph6SZLI9vUUz6OYw3QyUt7WiY2yME+cCiQ=
github.com/mattn/go-isatty v0.0.11/go.mod h1:PhnuNfih5lzO57/f3n+odYbM4JtupLOxQOAqxQCu2WE= github.com/mattn/go-isatty v0.0.11/go.mod h1:PhnuNfih5lzO57/f3n+odYbM4JtupLOxQOAqxQCu2WE=
github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU=
github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM=
github.com/mattn/go-isatty v0.0.19/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY=
github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
github.com/mattn/go-sqlite3 v1.9.0/go.mod h1:FPy6KqzDD04eiIsT53CuJW3U88zkxoIYsOqkbpncsNc= github.com/mattn/go-sqlite3 v1.9.0/go.mod h1:FPy6KqzDD04eiIsT53CuJW3U88zkxoIYsOqkbpncsNc=
github.com/mattn/go-sqlite3 v1.10.0/go.mod h1:FPy6KqzDD04eiIsT53CuJW3U88zkxoIYsOqkbpncsNc= github.com/mattn/go-sqlite3 v1.10.0/go.mod h1:FPy6KqzDD04eiIsT53CuJW3U88zkxoIYsOqkbpncsNc=
github.com/mattn/go-sqlite3 v1.11.0/go.mod h1:FPy6KqzDD04eiIsT53CuJW3U88zkxoIYsOqkbpncsNc= github.com/mattn/go-sqlite3 v1.11.0/go.mod h1:FPy6KqzDD04eiIsT53CuJW3U88zkxoIYsOqkbpncsNc=
@@ -806,7 +813,7 @@ github.com/nicksnyder/go-i18n v1.10.0/go.mod h1:HrK7VCrbOvQoUAQ7Vpy7i87N7JZZZ7R2
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e h1:fD57ERR4JtEqsWbfPhv4DMiApHyliiK5xCTNVSPiaAs= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e h1:fD57ERR4JtEqsWbfPhv4DMiApHyliiK5xCTNVSPiaAs=
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno=
github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U=
github.com/oleiade/reflections v1.0.0/go.mod h1:RbATFBbKYkVdqmSFtx13Bb/tVhR0lgOBXunWTZKeL4w= github.com/oleiade/reflections v1.0.0/go.mod h1:rdFxbxq4QXVZWj0F+e9jqjDkc7dbp97vkRixKo2JR60=
github.com/oleiade/reflections v1.0.1 h1:D1XO3LVEYroYskEsoSiGItp9RUxG6jWnCVvrqH0HHQM= github.com/oleiade/reflections v1.0.1 h1:D1XO3LVEYroYskEsoSiGItp9RUxG6jWnCVvrqH0HHQM=
github.com/oleiade/reflections v1.0.1/go.mod h1:rdFxbxq4QXVZWj0F+e9jqjDkc7dbp97vkRixKo2JR60= github.com/oleiade/reflections v1.0.1/go.mod h1:rdFxbxq4QXVZWj0F+e9jqjDkc7dbp97vkRixKo2JR60=
github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
@@ -924,8 +931,11 @@ github.com/rogpeppe/go-internal v1.5.2/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTE
github.com/rogpeppe/go-internal v1.6.1 h1:/FiVV8dS/e+YqF2JvO3yXRFbBLTIuSDkuC7aBOAvL+k= github.com/rogpeppe/go-internal v1.6.1 h1:/FiVV8dS/e+YqF2JvO3yXRFbBLTIuSDkuC7aBOAvL+k=
github.com/rs/cors v1.6.0/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU= github.com/rs/cors v1.6.0/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU=
github.com/rs/xid v1.2.1/go.mod h1:+uKXf+4Djp6Md1KODXJxgGQPKngRmWyn10oCKFzNHOQ= github.com/rs/xid v1.2.1/go.mod h1:+uKXf+4Djp6Md1KODXJxgGQPKngRmWyn10oCKFzNHOQ=
github.com/rs/xid v1.5.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg=
github.com/rs/zerolog v1.13.0/go.mod h1:YbFCdg8HfsridGWAh22vktObvhZbQsZXe4/zB0OKkWU= github.com/rs/zerolog v1.13.0/go.mod h1:YbFCdg8HfsridGWAh22vktObvhZbQsZXe4/zB0OKkWU=
github.com/rs/zerolog v1.15.0/go.mod h1:xYTKnLHcpfU2225ny5qZjxnj9NvkumZYjJHlAThCjNc= github.com/rs/zerolog v1.15.0/go.mod h1:xYTKnLHcpfU2225ny5qZjxnj9NvkumZYjJHlAThCjNc=
github.com/rs/zerolog v1.33.0 h1:1cU2KZkvPxNyfgEmhHAz/1A9Bz+llsdYzklWFzgp0r8=
github.com/rs/zerolog v1.33.0/go.mod h1:/7mN4D5sKwJLZQ2b/znpjC3/GQWY/xaDXUM0kKWRHss=
github.com/rubenv/sql-migrate v0.0.0-20190212093014-1007f53448d7/go.mod h1:WS0rl9eEliYI8DPnr3TOwz4439pay+qNgzJoVya/DmY= github.com/rubenv/sql-migrate v0.0.0-20190212093014-1007f53448d7/go.mod h1:WS0rl9eEliYI8DPnr3TOwz4439pay+qNgzJoVya/DmY=
github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g= github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g=
github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
@@ -1370,9 +1380,12 @@ golang.org/x/sys v0.0.0-20210423185535-09eb48e85fd7/go.mod h1:h1NjWce9XRLGQEsW7w
golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220908164124-27713097b956/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220908164124-27713097b956/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.5.0 h1:MUK/U/4lj1t1oPg0HfuXDN/Z1wv31ZJ/YcPiGccS4DU= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.27.0 h1:wBqf8DvsY9Y/2P8gAfPDEYNuS30J4lPHJxXSb/nJZ+s=
golang.org/x/sys v0.27.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=

View File

@@ -2,9 +2,9 @@ package grpcapi
import ( import (
"encoding/json" "encoding/json"
"fmt"
"git.coopgo.io/coopgo-platform/mobility-accounts/storage" "git.coopgo.io/coopgo-platform/mobility-accounts/storage"
"github.com/rs/zerolog/log"
"google.golang.org/protobuf/encoding/protojson" "google.golang.org/protobuf/encoding/protojson"
"google.golang.org/protobuf/types/known/structpb" "google.golang.org/protobuf/types/known/structpb"
) )
@@ -27,7 +27,7 @@ func (a Account) ToStorageType() storage.Account {
for k, d := range a.Data.GetFields() { for k, d := range a.Data.GetFields() {
jsondata, err := protojson.Marshal(d) jsondata, err := protojson.Marshal(d)
if err != nil { if err != nil {
fmt.Println(err) log.Error().Err(err).Msg("")
break break
} }
var data any var data any
@@ -68,7 +68,7 @@ func AccountFromStorageType(account *storage.Account) (*Account, error) {
data, err := structpb.NewStruct(d) data, err := structpb.NewStruct(d)
if err != nil { if err != nil {
fmt.Println(err) log.Error().Err(err).Msg("")
return nil, err return nil, err
} }

View File

@@ -2,11 +2,10 @@ package grpcapi
import ( import (
context "context" context "context"
"fmt"
"log"
"net" "net"
"git.coopgo.io/coopgo-platform/mobility-accounts/handlers" "git.coopgo.io/coopgo-platform/mobility-accounts/handlers"
"github.com/rs/zerolog/log"
"github.com/spf13/viper" "github.com/spf13/viper"
"google.golang.org/grpc" "google.golang.org/grpc"
codes "google.golang.org/grpc/codes" codes "google.golang.org/grpc/codes"
@@ -31,7 +30,7 @@ func (s MobilityAccountsServerImpl) Login(ctx context.Context, req *LoginRequest
} }
response, err := AccountFromStorageType(account) response, err := AccountFromStorageType(account)
if err != nil { if err != nil {
fmt.Println(err) log.Error().Err(err).Msg("")
return nil, status.Errorf(codes.Internal, "issue while retrieving account : %v", err) return nil, status.Errorf(codes.Internal, "issue while retrieving account : %v", err)
} }
return &LoginResponse{Account: response}, nil return &LoginResponse{Account: response}, nil
@@ -40,12 +39,12 @@ func (s MobilityAccountsServerImpl) Register(ctx context.Context, req *RegisterR
a := req.Account.ToStorageType() a := req.Account.ToStorageType()
account, err := s.handler.Register(a) account, err := s.handler.Register(a)
if err != nil { if err != nil {
fmt.Println(err) log.Error().Err(err).Msg("")
return nil, status.Errorf(codes.AlreadyExists, "account creation failed : %v", err) return nil, status.Errorf(codes.AlreadyExists, "account creation failed : %v", err)
} }
response, err := AccountFromStorageType(account) response, err := AccountFromStorageType(account)
if err != nil { if err != nil {
fmt.Println(err) log.Error().Err(err).Msg("")
return nil, status.Errorf(codes.Internal, "issue while retrieving account : %v", err) return nil, status.Errorf(codes.Internal, "issue while retrieving account : %v", err)
} }
return &RegisterResponse{Account: response}, nil return &RegisterResponse{Account: response}, nil
@@ -58,7 +57,7 @@ func (s MobilityAccountsServerImpl) UpdateData(ctx context.Context, req *UpdateD
} }
response, err := AccountFromStorageType(account) response, err := AccountFromStorageType(account)
if err != nil { if err != nil {
fmt.Println(err) log.Error().Err(err).Msg("")
return nil, status.Errorf(codes.Internal, "issue while retrieving account : %v", err) return nil, status.Errorf(codes.Internal, "issue while retrieving account : %v", err)
} }
return &UpdateDataResponse{Account: response}, nil return &UpdateDataResponse{Account: response}, nil
@@ -78,12 +77,12 @@ func (s MobilityAccountsServerImpl) UpdatePhoneNumber(ctx context.Context, req *
func (s MobilityAccountsServerImpl) GetAccount(ctx context.Context, req *GetAccountRequest) (*GetAccountResponse, error) { func (s MobilityAccountsServerImpl) GetAccount(ctx context.Context, req *GetAccountRequest) (*GetAccountResponse, error) {
account, err := s.handler.GetAccount(req.Id) account, err := s.handler.GetAccount(req.Id)
if err != nil { if err != nil {
fmt.Println(err) log.Error().Err(err).Msg("")
return nil, status.Errorf(codes.AlreadyExists, "issue while retrieving account : %v", err) return nil, status.Errorf(codes.AlreadyExists, "issue while retrieving account : %v", err)
} }
response, err := AccountFromStorageType(account) response, err := AccountFromStorageType(account)
if err != nil { if err != nil {
fmt.Println(err) log.Error().Err(err).Msg("")
return nil, status.Errorf(codes.Internal, "issue while retrieving account : %v", err) return nil, status.Errorf(codes.Internal, "issue while retrieving account : %v", err)
} }
return &GetAccountResponse{Account: response}, nil return &GetAccountResponse{Account: response}, nil
@@ -91,12 +90,12 @@ func (s MobilityAccountsServerImpl) GetAccount(ctx context.Context, req *GetAcco
func (s MobilityAccountsServerImpl) GetAccountUsername(ctx context.Context, req *GetAccountUsernameRequest) (*GetAccountUsernameResponse, error) { func (s MobilityAccountsServerImpl) GetAccountUsername(ctx context.Context, req *GetAccountUsernameRequest) (*GetAccountUsernameResponse, error) {
account, err := s.handler.GetAccountUsername(req.Username, req.Namespace) account, err := s.handler.GetAccountUsername(req.Username, req.Namespace)
if err != nil { if err != nil {
fmt.Println(err) log.Error().Err(err).Msg("")
return nil, status.Errorf(codes.AlreadyExists, "issue while retrieving account : %v", err) return nil, status.Errorf(codes.AlreadyExists, "issue while retrieving account : %v", err)
} }
response, err := AccountFromStorageType(account) response, err := AccountFromStorageType(account)
if err != nil { if err != nil {
fmt.Println(err) log.Error().Err(err).Msg("")
return nil, status.Errorf(codes.Internal, "issue while retrieving account : %v", err) return nil, status.Errorf(codes.Internal, "issue while retrieving account : %v", err)
} }
return &GetAccountUsernameResponse{Account: response}, nil return &GetAccountUsernameResponse{Account: response}, nil
@@ -147,13 +146,13 @@ func Run(done chan error, cfg *viper.Viper, handler handlers.MobilityAccountsHan
dev_env = cfg.GetBool("dev_env") dev_env = cfg.GetBool("dev_env")
address = ":" + cfg.GetString("services.grpc.port") address = ":" + cfg.GetString("services.grpc.port")
) )
fmt.Println("-> GRPC server on", address) log.Info().Str("address", address).Msg("Running gRPC server")
server := grpc.NewServer() server := grpc.NewServer()
RegisterMobilityAccountsServer(server, NewMobilityAccountsServer(handler)) RegisterMobilityAccountsServer(server, NewMobilityAccountsServer(handler))
l, err := net.Listen("tcp", address) l, err := net.Listen("tcp", address)
if err != nil { if err != nil {
log.Fatal(err) log.Fatal().Str("address", address).Err(err).Msg("gRPC server cannot listen")
} }
if dev_env { if dev_env {
@@ -161,7 +160,7 @@ func Run(done chan error, cfg *viper.Viper, handler handlers.MobilityAccountsHan
} }
if err := server.Serve(l); err != nil { if err := server.Serve(l); err != nil {
fmt.Println("gRPC service ended") log.Error().Err(err).Msg("gRPC service ended")
done <- err done <- err
} }
} }

View File

@@ -2,12 +2,12 @@ package handlers
import ( import (
"errors" "errors"
"fmt"
"strings" "strings"
"time" "time"
"git.coopgo.io/coopgo-platform/mobility-accounts/storage" "git.coopgo.io/coopgo-platform/mobility-accounts/storage"
"github.com/google/uuid" "github.com/google/uuid"
"github.com/rs/zerolog/log"
"github.com/santhosh-tekuri/jsonschema/v5" "github.com/santhosh-tekuri/jsonschema/v5"
"golang.org/x/crypto/bcrypt" "golang.org/x/crypto/bcrypt"
) )
@@ -19,12 +19,12 @@ func (h MobilityAccountsHandler) Login(username string, password string, namespa
u := strings.ToLower(username) u := strings.ToLower(username)
account, err := h.storage.DB.LocalAuthentication(namespace, &u, nil, nil) account, err := h.storage.DB.LocalAuthentication(namespace, &u, nil, nil)
if err != nil { if err != nil {
fmt.Println(err) log.Error().Err(err).Msg("")
return nil, err return nil, err
} }
if err = bcrypt.CompareHashAndPassword([]byte(account.Authentication.Local.Password), []byte(password)); err != nil { if err = bcrypt.CompareHashAndPassword([]byte(account.Authentication.Local.Password), []byte(password)); err != nil {
fmt.Println(err) log.Error().Err(err).Msg("")
return nil, err return nil, err
} }
@@ -108,7 +108,7 @@ func (h MobilityAccountsHandler) UpdateData(accountid string, datas map[string]a
dataschemas := h.config.GetStringMap("data_schemas") dataschemas := h.config.GetStringMap("data_schemas")
for k, v := range datas { for k, v := range datas {
if !h.config.GetBool("allow_any_data") && dataschemas[k] == nil { if !h.config.GetBool("allow_any_data") && dataschemas[k] == nil {
fmt.Println("data scope not allowed") log.Error().Msg("data scope not allowed")
return nil, errors.New("data scope not allowed") return nil, errors.New("data scope not allowed")
} }
@@ -116,19 +116,19 @@ func (h MobilityAccountsHandler) UpdateData(accountid string, datas map[string]a
s := dataschemas[k].(map[string]string) s := dataschemas[k].(map[string]string)
sch, err := jsonschema.Compile(s["schema"]) sch, err := jsonschema.Compile(s["schema"])
if err != nil { if err != nil {
fmt.Println(err) log.Error().Err(err).Msg("")
return nil, err return nil, err
} }
if err = sch.Validate(v); err != nil { if err = sch.Validate(v); err != nil {
fmt.Println(err) log.Error().Err(err).Msg("")
return nil, err return nil, err
} }
} }
account.Data[k] = v account.Data[k] = v
} }
if err = h.storage.DB.UpdateAccount(*account); err != nil { if err = h.storage.DB.UpdateAccount(*account); err != nil {
fmt.Println(err) log.Error().Err(err).Msg("")
return nil, err return nil, err
} }
@@ -151,7 +151,7 @@ func (h MobilityAccountsHandler) UpdatePhoneNumber(accountid, phone_number strin
account.Authentication.Local.PhoneNumberValidation.ValidationCode = verification_code account.Authentication.Local.PhoneNumberValidation.ValidationCode = verification_code
if err = h.storage.DB.UpdateAccount(*account); err != nil { if err = h.storage.DB.UpdateAccount(*account); err != nil {
fmt.Println(err) log.Error().Err(err).Msg("")
return err return err
} }

20
main.go
View File

@@ -1,12 +1,14 @@
package main package main
import ( import (
"fmt" "os"
"git.coopgo.io/coopgo-platform/mobility-accounts/grpcapi" "git.coopgo.io/coopgo-platform/mobility-accounts/grpcapi"
"git.coopgo.io/coopgo-platform/mobility-accounts/handlers" "git.coopgo.io/coopgo-platform/mobility-accounts/handlers"
op "git.coopgo.io/coopgo-platform/mobility-accounts/oidc-provider" op "git.coopgo.io/coopgo-platform/mobility-accounts/oidc-provider"
"git.coopgo.io/coopgo-platform/mobility-accounts/storage" "git.coopgo.io/coopgo-platform/mobility-accounts/storage"
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
) )
func main() { func main() {
@@ -22,20 +24,22 @@ func main() {
dev_env = cfg.GetBool("dev_env") dev_env = cfg.GetBool("dev_env")
) )
if dev_env {
log.Logger = log.Output(zerolog.ConsoleWriter{Out: os.Stderr})
}
storage, err := storage.NewStorage(cfg) storage, err := storage.NewStorage(cfg)
if err != nil { if err != nil {
panic(err) log.Panic().Err(err).Msg("Cannot connect to storage")
return
} }
handler := handlers.NewHandler(cfg, storage) handler := handlers.NewHandler(cfg, storage)
fmt.Println("Running", service_name, ":")
if dev_env {
fmt.Printf("\033]0;%s\007", service_name)
}
failed := make(chan error) failed := make(chan error)
log.Info().Str("service_name", service_name).Msg("Running service")
if grpc_enable { if grpc_enable {
go grpcapi.Run(failed, cfg, handler) go grpcapi.Run(failed, cfg, handler)
} }
@@ -46,6 +50,6 @@ func main() {
err = <-failed err = <-failed
fmt.Println("Terminating :", err) log.Fatal().Err(err).Msg("Terminating server")
} }

View File

@@ -4,7 +4,9 @@ import (
"context" "context"
"crypto/rsa" "crypto/rsa"
"errors" "errors"
"net/url"
"reflect" "reflect"
"strings"
"time" "time"
"git.coopgo.io/coopgo-platform/mobility-accounts/handlers" "git.coopgo.io/coopgo-platform/mobility-accounts/handlers"
@@ -18,7 +20,14 @@ import (
func NewProvider(c OIDCNamespaceConfig, h handlers.MobilityAccountsHandler, s storage.Storage, privateKey *rsa.PrivateKey) fosite.OAuth2Provider { func NewProvider(c OIDCNamespaceConfig, h handlers.MobilityAccountsHandler, s storage.Storage, privateKey *rsa.PrivateKey) fosite.OAuth2Provider {
config := &compose.Config{} config := &compose.Config{
RedirectSecureChecker: func(checkUrl *url.URL) bool {
if strings.HasSuffix(checkUrl.Host, "svc.cluster.local") || strings.HasSuffix(checkUrl.Host, "localhost") {
return true
}
return false
},
}
storage := NewOIDCProviderStore(c, h, s.KV) storage := NewOIDCProviderStore(c, h, s.KV)
secret := []byte(c.SecretKey) secret := []byte(c.SecretKey)
return compose.ComposeAllEnabled(config, storage, secret, privateKey) return compose.ComposeAllEnabled(config, storage, secret, privateKey)

View File

@@ -3,12 +3,12 @@ package op
import ( import (
"crypto/rand" "crypto/rand"
"crypto/rsa" "crypto/rsa"
"fmt"
"git.coopgo.io/coopgo-platform/mobility-accounts/handlers" "git.coopgo.io/coopgo-platform/mobility-accounts/handlers"
"git.coopgo.io/coopgo-platform/mobility-accounts/storage" "git.coopgo.io/coopgo-platform/mobility-accounts/storage"
"github.com/mitchellh/mapstructure" "github.com/mitchellh/mapstructure"
"github.com/ory/fosite" "github.com/ory/fosite"
"github.com/rs/zerolog/log"
"github.com/spf13/viper" "github.com/spf13/viper"
) )
@@ -86,14 +86,14 @@ func Run(done chan error, cfg *viper.Viper, handler handlers.MobilityAccountsHan
address = "0.0.0.0:" + cfg.GetString("services.oidc_provider.port") address = "0.0.0.0:" + cfg.GetString("services.oidc_provider.port")
) )
fmt.Println("-> OIDC provider endpoints on", address) log.Info().Str("address", address).Msg("Running OIDC provider")
s := NewOIDCHandler(handler, storage, cfg) s := NewOIDCHandler(handler, storage, cfg)
err := NewOIDCServer(s, cfg) err := NewOIDCServer(s, cfg)
if err != nil { if err != nil {
fmt.Println("OIDC server ended") log.Error().Err(err).Msg("OIDC server ended")
} }
done <- err done <- err

View File

@@ -5,6 +5,7 @@ import (
"errors" "errors"
"fmt" "fmt"
"github.com/rs/zerolog/log"
"github.com/spf13/viper" "github.com/spf13/viper"
"go.mongodb.org/mongo-driver/bson" "go.mongodb.org/mongo-driver/bson"
"go.mongodb.org/mongo-driver/mongo" "go.mongodb.org/mongo-driver/mongo"
@@ -185,7 +186,7 @@ func (s MongoDBStorage) CreateAccount(account Account) error {
func (s MongoDBStorage) UpdateAccount(account Account) error { func (s MongoDBStorage) UpdateAccount(account Account) error {
collection := s.Client.Database(s.DbName).Collection(s.Collections["users"]) collection := s.Client.Database(s.DbName).Collection(s.Collections["users"])
if _, err := collection.ReplaceOne(context.TODO(), bson.M{"_id": account.ID}, account); err != nil { if _, err := collection.ReplaceOne(context.TODO(), bson.M{"_id": account.ID}, account); err != nil {
fmt.Println(err) log.Error().Err(err).Msg("")
return err return err
} }
@@ -193,6 +194,6 @@ func (s MongoDBStorage) UpdateAccount(account Account) error {
} }
func (s MongoDBStorage) Migrate() error { func (s MongoDBStorage) Migrate() error {
fmt.Println("no migration") log.Error().Msg("no migration")
return nil return nil
} }

View File

@@ -13,6 +13,7 @@ import (
"ariga.io/atlas/sql/schema" "ariga.io/atlas/sql/schema"
"github.com/lib/pq" "github.com/lib/pq"
_ "github.com/lib/pq" _ "github.com/lib/pq"
"github.com/rs/zerolog/log"
"github.com/spf13/viper" "github.com/spf13/viper"
) )
@@ -38,12 +39,12 @@ func NewPostgresqlStorage(cfg *viper.Viper) (PostgresqlStorage, error) {
psqlconn := fmt.Sprintf("host=%s port=%d user=%s password=%s dbname=%s sslmode=%s", host, portInt, user, password, dbname, sslmode) psqlconn := fmt.Sprintf("host=%s port=%d user=%s password=%s dbname=%s sslmode=%s", host, portInt, user, password, dbname, sslmode)
db, err := sql.Open("postgres", psqlconn) db, err := sql.Open("postgres", psqlconn)
if err != nil { if err != nil {
fmt.Println("error", err) log.Error().Err(err).Msg("error opening postgresql connection")
return PostgresqlStorage{}, fmt.Errorf("connection to postgresql failed") return PostgresqlStorage{}, fmt.Errorf("connection to postgresql failed")
} }
err = db.Ping() err = db.Ping()
if err != nil { if err != nil {
fmt.Println(err) log.Error().Err(err).Msg("")
return PostgresqlStorage{}, fmt.Errorf("connection to postgresql database failed") return PostgresqlStorage{}, fmt.Errorf("connection to postgresql database failed")
} }
return PostgresqlStorage{ return PostgresqlStorage{
@@ -129,7 +130,7 @@ func (psql PostgresqlStorage) LocalAuthentication(namespace string, username *st
req += fmt.Sprintf(` AND phone_number = '%s'`, *phone_number) req += fmt.Sprintf(` AND phone_number = '%s'`, *phone_number)
} }
req += ";" req += ";"
fmt.Println(req)
account.Authentication.Local = &LocalAuth{} account.Authentication.Local = &LocalAuth{}
err := psql.DbConnection.QueryRow(req).Scan( err := psql.DbConnection.QueryRow(req).Scan(
&account.ID, &account.ID,
@@ -145,22 +146,22 @@ func (psql PostgresqlStorage) LocalAuthentication(namespace string, username *st
} }
err = json.Unmarshal(metadata, &account.Metadata) err = json.Unmarshal(metadata, &account.Metadata)
if err != nil { if err != nil {
fmt.Println("one") log.Error().Err(err).Msg("error unmarshalling account metadata")
return nil, err return nil, err
} }
err = json.Unmarshal(data, &account.Data) err = json.Unmarshal(data, &account.Data)
if err != nil { if err != nil {
fmt.Println("two") log.Error().Err(err).Msg("error unmarshalling account data")
return nil, err return nil, err
} }
err = json.Unmarshal(emailValidation, &account.Authentication.Local.EmailValidation) err = json.Unmarshal(emailValidation, &account.Authentication.Local.EmailValidation)
if err != nil { if err != nil {
fmt.Println("three") log.Error().Err(err).Msg("error unmarshalling email validation")
return nil, err return nil, err
} }
err = json.Unmarshal(phoneValidation, &account.Authentication.Local.PhoneNumberValidation) err = json.Unmarshal(phoneValidation, &account.Authentication.Local.PhoneNumberValidation)
if err != nil { if err != nil {
fmt.Println("four") log.Error().Err(err).Msg("error unmarshalling phone validation")
return nil, err return nil, err
} }
return account, nil return account, nil