Fixed the caching scheme.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-04-12 15:56:46 +08:00
parent b44be08156
commit 26a1e4ffda

View File

@@ -4,7 +4,7 @@ name: ubuntu
steps: steps:
- name: create_tags - name: create_tags
image: ubuntu:22.04 image: ubuntu:latest
commands: commands:
- echo "$(date "+%Y-%m-%d"), latest" > .tags - echo "$(date "+%Y-%m-%d"), latest" > .tags
@@ -28,9 +28,9 @@ steps:
- linux/arm64 - linux/arm64
- linux/arm/v7 - linux/arm/v7
cache_from: cache_from:
- type=local\\,src=/cache/${DRONE_REPO}/ubuntu-${UBUNTU_VER} - type=local\\,src=/cache/${DRONE_REPO}/ubuntu-22.04
cache_to: cache_to:
- type=local,dest=/cache/${DRONE_REPO}/ubuntu-${UBUNTU_VER},mode=max - type=local,dest=/cache/${DRONE_REPO}/ubuntu-22.04,mode=max
depends_on: depends_on:
- create_tags - create_tags
@@ -43,6 +43,10 @@ steps:
repo: ${DRONE_REPO_LINK:8}/ubuntu-20.04 repo: ${DRONE_REPO_LINK:8}/ubuntu-20.04
extra_tags: extra_tags:
- ${DRONE_REPO_LINK:8}:20.04 - ${DRONE_REPO_LINK:8}:20.04
cache_from:
- type=local\\,src=/cache/${DRONE_REPO}/ubuntu-20.04
cache_to:
- type=local,dest=/cache/${DRONE_REPO}/ubuntu-20.04,mode=max
- name: ubuntu_18 - name: ubuntu_18
image: thegeeklab/drone-docker-buildx:23 image: thegeeklab/drone-docker-buildx:23
@@ -53,3 +57,7 @@ steps:
repo: ${DRONE_REPO_LINK:8}/ubuntu-18.04 repo: ${DRONE_REPO_LINK:8}/ubuntu-18.04
extra_tags: extra_tags:
- ${DRONE_REPO_LINK:8}:18.04 - ${DRONE_REPO_LINK:8}:18.04
cache_from:
- type=local\\,src=/cache/${DRONE_REPO}/ubuntu-18.04
cache_to:
- type=local,dest=/cache/${DRONE_REPO}/ubuntu-18.04,mode=max