Skip to content

Commit 470a1fd

Browse files
committed
Add pipelines for building the bindings
1 parent 36e86e4 commit 470a1fd

4 files changed

Lines changed: 240 additions & 0 deletions

File tree

.woodpecker/build-cpp-qt.yaml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
---
2+
variables:
3+
- &alpine_image 'owncloudci/alpine:latest'
4+
- &generator_image 'openapitools/openapi-generator-cli:v7.13.0@sha256:52b4b2bb6129b086b0f12614e98c884d378a84349fa114b07e20515702a793c5'
5+
- &environment
6+
HTTP_PROXY:
7+
from_secret: ci_http_proxy
8+
HTTPS_PROXY:
9+
from_secret: ci_http_proxy
10+
11+
when:
12+
- event: [ push , manual ]
13+
branch: main
14+
15+
steps:
16+
clone_target_repo:
17+
image: woodpeckerci/plugin-git
18+
settings:
19+
branch: main
20+
ref: HEAD
21+
path: libre-graph-api-cpp-qt-client
22+
remote: https://github.com/opencloud-eu/libre-graph-api-cpp-qt-client.git
23+
generate-cpp-qt:
24+
image: *generator_image
25+
environment: *environment
26+
commands:
27+
- rm -Rf libre-graph-api-cpp-qt-client/*
28+
- '/usr/local/bin/docker-entrypoint.sh generate
29+
--enable-post-process-file
30+
-i api/openapi-spec/v1.0.yaml
31+
--additional-properties=packageName=libregraph
32+
--git-user-id=opencloud-eu
33+
--git-repo-id=libre-graph-api-cpp-qt-client
34+
-g cpp-qt-client
35+
-t templates/cpp-qt-client
36+
-o libre-graph-api-cpp-qt-client'
37+
- cp LICENSE libre-graph-api-cpp-qt-client/LICENSE
38+
diff:
39+
image: *alpine_image
40+
environment: *environment
41+
commands:
42+
- cd libre-graph-api-cpp-qt-client
43+
- git diff
44+
push_target_repo:
45+
image: quay.io/thegeeklab/wp-git-action
46+
settings:
47+
path: libre-graph-api-cpp-qt-client
48+
remote_url: https://github.com/opencloud-eu/libre-graph-api-cpp-qt-client.git
49+
branch: main
50+
action:
51+
- commit
52+
- push
53+
followtags: true
54+
message: ${CI_COMMIT_MESSAGE}
55+
author_name: ${CI_COMMIT_AUTHOR}
56+
author_email: ${CI_COMMIT_AUTHOR_EMAIL}
57+
netrc_password:
58+
from_secret: github_token
59+
netrc_username:
60+
from_secret: github_username

.woodpecker/build-go.yaml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
---
2+
variables:
3+
- &alpine_image 'owncloudci/alpine:latest'
4+
- &generator_image 'openapitools/openapi-generator-cli:v7.13.0@sha256:52b4b2bb6129b086b0f12614e98c884d378a84349fa114b07e20515702a793c5'
5+
- &environment
6+
HTTP_PROXY:
7+
from_secret: ci_http_proxy
8+
HTTPS_PROXY:
9+
from_secret: ci_http_proxy
10+
11+
when:
12+
- event: [ push , manual ]
13+
branch: main
14+
15+
steps:
16+
clone_target_repo:
17+
image: woodpeckerci/plugin-git
18+
settings:
19+
branch: main
20+
ref: HEAD
21+
path: libre-graph-api-go
22+
remote: https://github.com/opencloud-eu/libre-graph-api-go.git
23+
generate-go:
24+
image: *generator_image
25+
environment: *environment
26+
commands:
27+
- rm -Rf libre-graph-api-go/*
28+
- '/usr/local/bin/docker-entrypoint.sh generate
29+
--enable-post-process-file
30+
-i api/openapi-spec/v1.0.yaml
31+
--additional-properties=packageName=libregraph
32+
--git-user-id=opencloud-eu
33+
--git-repo-id=libre-graph-api-go
34+
-g go
35+
-o libre-graph-api-go
36+
--api-name-suffix Api'
37+
- cp LICENSE libre-graph-api-go/LICENSE
38+
diff:
39+
image: *alpine_image
40+
environment: *environment
41+
commands:
42+
- cd libre-graph-api-go
43+
- git diff
44+
push_target_repo:
45+
image: quay.io/thegeeklab/wp-git-action
46+
settings:
47+
path: libre-graph-api-go
48+
remote_url: https://github.com/opencloud-eu/libre-graph-api-go.git
49+
branch: main
50+
action:
51+
- commit
52+
- push
53+
followtags: true
54+
message: ${CI_COMMIT_MESSAGE}
55+
author_name: ${CI_COMMIT_AUTHOR}
56+
author_email: ${CI_COMMIT_AUTHOR_EMAIL}
57+
netrc_password:
58+
from_secret: github_token
59+
netrc_username:
60+
from_secret: github_username

.woodpecker/build-php.yaml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
---
2+
variables:
3+
- &alpine_image 'owncloudci/alpine:latest'
4+
- &generator_image 'openapitools/openapi-generator-cli:v7.13.0@sha256:52b4b2bb6129b086b0f12614e98c884d378a84349fa114b07e20515702a793c5'
5+
- &environment
6+
HTTP_PROXY:
7+
from_secret: ci_http_proxy
8+
HTTPS_PROXY:
9+
from_secret: ci_http_proxy
10+
11+
when:
12+
- event: [ push , manual ]
13+
branch: main
14+
15+
steps:
16+
clone_target_repo:
17+
image: woodpeckerci/plugin-git
18+
settings:
19+
branch: main
20+
ref: HEAD
21+
path: libre-graph-api-php
22+
remote: https://github.com/opencloud-eu/libre-graph-api-php.git
23+
generate-php:
24+
image: *generator_image
25+
environment: *environment
26+
commands:
27+
- rm -Rf libre-graph-api-php/*
28+
- '/usr/local/bin/docker-entrypoint.sh generate
29+
--enable-post-process-file
30+
-i api/openapi-spec/v1.0.yaml
31+
--additional-properties=packageName=libregraph
32+
--git-user-id=opencloud-eu
33+
--git-repo-id=libre-graph-api-php
34+
-g php-nextgen
35+
-t templates/php-nextgen
36+
-o libre-graph-api-php'
37+
- cp LICENSE libre-graph-api-php/LICENSE
38+
diff:
39+
image: *alpine_image
40+
environment: *environment
41+
commands:
42+
- cd libre-graph-api-php
43+
- git diff
44+
push_target_repo:
45+
image: quay.io/thegeeklab/wp-git-action
46+
settings:
47+
path: libre-graph-api-php
48+
remote_url: https://github.com/opencloud-eu/libre-graph-api-php.git
49+
branch: main
50+
action:
51+
- commit
52+
- push
53+
followtags: true
54+
message: ${CI_COMMIT_MESSAGE}
55+
author_name: ${CI_COMMIT_AUTHOR}
56+
author_email: ${CI_COMMIT_AUTHOR_EMAIL}
57+
netrc_password:
58+
from_secret: github_token
59+
netrc_username:
60+
from_secret: github_username
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
---
2+
variables:
3+
- &alpine_image 'owncloudci/alpine:latest'
4+
- &generator_image 'openapitools/openapi-generator-cli:v7.13.0@sha256:52b4b2bb6129b086b0f12614e98c884d378a84349fa114b07e20515702a793c5'
5+
- &environment
6+
HTTP_PROXY:
7+
from_secret: ci_http_proxy
8+
HTTPS_PROXY:
9+
from_secret: ci_http_proxy
10+
11+
when:
12+
- event: [ push , manual ]
13+
branch: main
14+
15+
steps:
16+
clone_target_repo:
17+
image: woodpeckerci/plugin-git
18+
settings:
19+
branch: main
20+
ref: HEAD
21+
path: libre-graph-api-typescript-axios
22+
remote: https://github.com/opencloud-eu/libre-graph-api-typescript-axios.git
23+
generate-typescript-axios:
24+
image: *generator_image
25+
environment: *environment
26+
commands:
27+
- rm -Rf libre-graph-api-typescript-axios/*
28+
- '/usr/local/bin/docker-entrypoint.sh generate
29+
--enable-post-process-file
30+
-i api/openapi-spec/v1.0.yaml
31+
--additional-properties=packageName=libregraph
32+
--git-user-id=opencloud-eu
33+
--git-repo-id=libre-graph-api-typescript-axios
34+
-g typescript-axios
35+
-o libre-graph-api-typescript-axios
36+
--api-name-suffix Api'
37+
- cp LICENSE libre-graph-api-typescript-axios/LICENSE
38+
diff:
39+
image: *alpine_image
40+
environment: *environment
41+
commands:
42+
- cd libre-graph-api-typescript-axios
43+
- git diff
44+
push_target_repo:
45+
image: quay.io/thegeeklab/wp-git-action
46+
settings:
47+
path: libre-graph-api-typescript-axios
48+
remote_url: https://github.com/opencloud-eu/libre-graph-api-go.git
49+
branch: main
50+
action:
51+
- commit
52+
- push
53+
followtags: true
54+
message: ${CI_COMMIT_MESSAGE}
55+
author_name: ${CI_COMMIT_AUTHOR}
56+
author_email: ${CI_COMMIT_AUTHOR_EMAIL}
57+
netrc_password:
58+
from_secret: github_token
59+
netrc_username:
60+
from_secret: github_username

0 commit comments

Comments
 (0)