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