Cleanup #53
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Cleanup | |
on: | |
schedule: | |
- cron: "10 0 * * 1" | |
workflow_dispatch: | |
env: | |
GOPATH: /home/runner/go | |
GOCACHE: /home/runner/go/cache | |
GOLANGCI_LINT_CACHE: /home/runner/go/cache/lint | |
GOMODCACHE: /home/runner/go/mod | |
GOPROXY: https://proxy.golang.org | |
GOTOOLCHAIN: local | |
jobs: | |
cleanup: | |
name: Cleanup | |
runs-on: server | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # for `git describe` to work | |
lfs: false # LFS is used only by website | |
- name: Setup Go | |
uses: FerretDB/github-actions/setup-go@main | |
# no cache-key on server | |
- name: Install Task | |
run: go generate -x | |
working-directory: tools | |
- name: Run docker-cleanup | |
run: bin/task docker-cleanup | |
- name: Clean Go caches | |
run: go clean -cache -testcache -modcache -fuzzcache |