diff options
author | silverwind <me@silverwind.io> | 2022-02-12 11:43:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-12 10:43:08 +0000 |
commit | c04a4afac1e513297c7b24ef62e92487d0035288 (patch) | |
tree | c498731d63cc5bfbe308cd34adc3503f53a3b96f /web_src | |
parent | 65ad6362d70c22802c93885af536a3e52da8afdf (diff) | |
download | gitea-c04a4afac1e513297c7b24ef62e92487d0035288.tar.gz gitea-c04a4afac1e513297c7b24ef62e92487d0035288.zip |
Reduce CI go module downloads, add make targets (#18708, #18475, #18443) (#18741)
Backport #18708
Backport #18475
Backport #18443
The CI currently downloads all go modules in each pipeline step because go modules reside outside the project directory. Fix this by introducing a volume for the `/go` directory [1] so modules are only downloaded once per pipeline using a new `deps-backend` make target.
For completeness, I also included new `deps` and `deps-frontend` targets and the frontend one is also triggered explicitly on CI where needed.
[1] https://docs.drone.io/pipeline/kubernetes/examples/language/golang/#dependencies
* Also backports #18475 and #18443 so that is was able to merge cleanly.
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'web_src')
0 files changed, 0 insertions, 0 deletions