Skip to content

Commit

Permalink
Reduce CI go module downloads, add make targets (go-gitea#18708)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
silverwind authored Feb 12, 2022
1 parent 4e57bd1 commit 2ddff74
Show file tree
Hide file tree
Showing 3 changed files with 211 additions and 61 deletions.
Loading

0 comments on commit 2ddff74

Please sign in to comment.