Updated how cache is handled. Added a new tag.
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2023-04-12 13:49:07 +08:00
parent b61418adb2
commit d22896d831

View File

@@ -21,14 +21,16 @@ steps:
repo: ${DRONE_REPO_LINK:8}/ubuntu-22.04
build_args_from_env:
- UBUNTU_VER
extra_tags:
- ${DRONE_REPO_LINK:8}:${UBUNTU_VER}
platforms:
- linux/amd64
- linux/arm64
- linux/arm/v7
cache_from:
- type=local\\,src=/cache/${DRONE_REPO}
- type=local\\,src=/cache/${DRONE_REPO}/ubuntu-${UBUNTU_VER}
cache_to:
- type=local,dest=/cache/${DRONE_REPO},mode=max
- type=local,dest=/cache/${DRONE_REPO}/ubuntu-${UBUNTU_VER},mode=max
depends_on:
- create_tags