Simplified the config file.
Some checks failed
continuous-integration/drone/push Build encountered an error

This commit is contained in:
2023-04-12 16:08:06 +08:00
parent 26a1e4ffda
commit ac7255dbed

View File

@@ -8,8 +8,10 @@ steps:
commands: commands:
- echo "$(date "+%Y-%m-%d"), latest" > .tags - echo "$(date "+%Y-%m-%d"), latest" > .tags
- name: ubuntu_22 - name: &name ubuntu_22
image: thegeeklab/drone-docker-buildx:23 image: &image thegeeklab/drone-docker-buildx:23
depends_on: &depends
- create_tags
environment: environment:
UBUNTU_VER: 22.04 UBUNTU_VER: 22.04
settings: &settings settings: &settings
@@ -31,11 +33,10 @@ steps:
- type=local\\,src=/cache/${DRONE_REPO}/ubuntu-22.04 - type=local\\,src=/cache/${DRONE_REPO}/ubuntu-22.04
cache_to: cache_to:
- type=local,dest=/cache/${DRONE_REPO}/ubuntu-22.04,mode=max - type=local,dest=/cache/${DRONE_REPO}/ubuntu-22.04,mode=max
depends_on:
- create_tags
- name: ubuntu_20 - name: *name
image: thegeeklab/drone-docker-buildx:23 image: *image
depends_on: *depends
environment: environment:
UBUNTU_VER: 20.04 UBUNTU_VER: 20.04
settings: settings:
@@ -48,8 +49,9 @@ steps:
cache_to: cache_to:
- type=local,dest=/cache/${DRONE_REPO}/ubuntu-20.04,mode=max - type=local,dest=/cache/${DRONE_REPO}/ubuntu-20.04,mode=max
- name: ubuntu_18 - name: *name
image: thegeeklab/drone-docker-buildx:23 image: *image
depends_on: *depends
environment: environment:
UBUNTU_VER: 18.04 UBUNTU_VER: 18.04
settings: settings: