Skip to content

Commit d8ac4fc

Browse files
committed
Skip to use cache when building docker image in Woodpecker CI.
Since the disk quota is run out, we cannot download, use and upload cache. Maybe in the future we can use MinIO as cache directly but it seems hard to configure.
1 parent 73867d5 commit d8ac4fc

File tree

1 file changed

+0
-34
lines changed

1 file changed

+0
-34
lines changed

.woodpecker/docker.yml

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,6 @@ when:
22
- event: push
33
- event: pull_request
44

5-
variables:
6-
- &docker_config
7-
DOCKER_CACHE: /woodpecker/cache/docker
8-
- &minio_config
9-
MINIO_HOST: https://s3.kclab.cloud
10-
MINIO_ACCESS_KEY:
11-
from_secret: minio_access_key
12-
MINIO_SECRET_KEY:
13-
from_secret: minio_secret_key
14-
MINIO_BUCKET: cache-53030
15-
165
clone:
176
git:
187
image: woodpeckerci/plugin-git:2.6
@@ -21,17 +10,6 @@ clone:
2110
partial: false
2211

2312
steps:
24-
- name: open cache
25-
image: minio/mc:latest
26-
environment:
27-
<<: [*docker_config, *minio_config]
28-
commands:
29-
- mkdir --parents $${DOCKER_CACHE}
30-
- touch $${DOCKER_CACHE}/.keep
31-
- mc alias set minio $${MINIO_HOST} $${MINIO_ACCESS_KEY} $${MINIO_SECRET_KEY}
32-
- mc cp --recursive minio/$${MINIO_BUCKET}/${CI_REPO}/docker/ $${DOCKER_CACHE}/
33-
failure: ignore
34-
3513
- name: tagging
3614
image: mcp/git:latest
3715
commands:
@@ -46,20 +24,8 @@ steps:
4624
from_secret: gitea_package
4725
registry: git.kclab.cloud
4826
tags_file: .tag
49-
cache-to: type=local,dest=/woodpecker/cache/docker
50-
cache-from:
51-
- type=local\\,src=/woodpecker/cache/docker
5227
buildkit_config: |
5328
[registry."docker.io"]
5429
mirrors = ["https://docker.mirrors.kclab.cloud/"]
5530
build_args:
5631
PYPI_MIRROR: https://mirrors.ustc.edu.cn/pypi/simple
57-
58-
- name: save cache
59-
image: minio/mc:latest
60-
environment:
61-
<<: [*docker_config, *minio_config]
62-
commands:
63-
- mc alias set minio $${MINIO_HOST} $${MINIO_ACCESS_KEY} $${MINIO_SECRET_KEY}
64-
- mc cp --recursive $${DOCKER_CACHE}/ minio/$${MINIO_BUCKET}/${CI_REPO}/docker/
65-
failure: ignore

0 commit comments

Comments
 (0)