Added support for ubuntu 22, 20, 18.
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone Build is passing

This commit is contained in:
2023-04-12 13:26:53 +08:00
parent 895026b649
commit b61418adb2

View File

@@ -4,7 +4,7 @@ name: ubuntu
steps: steps:
- name: create_tags - name: create_tags
image: ubuntu:latest image: ubuntu:22.04
commands: commands:
- echo "$(date "+%Y-%m-%d"), latest" > .tags - echo "$(date "+%Y-%m-%d"), latest" > .tags
@@ -12,18 +12,15 @@ steps:
image: thegeeklab/drone-docker-buildx:23 image: thegeeklab/drone-docker-buildx:23
environment: environment:
UBUNTU_VER: 22.04 UBUNTU_VER: 22.04
settings: settings: &settings
registry: gitea.ahkhan.me registry: gitea.ahkhan.me
username: username:
from_secret: gitea-username from_secret: gitea-username
password: password:
from_secret: gitea-password from_secret: gitea-password
repo: ${DRONE_REPO_LINK:8}/ubuntu-$UBUNTU_VER repo: ${DRONE_REPO_LINK:8}/ubuntu-22.04
build_args_from_env: build_args_from_env:
- UBUNTU_VER - UBUNTU_VER
extra_tags:
- ${DRONE_REPO_LINK:8}:${UBUNTU_VER}
- ${DRONE_REPO_LINK:8}:latest
platforms: platforms:
- linux/amd64 - linux/amd64
- linux/arm64 - linux/arm64
@@ -32,3 +29,21 @@ steps:
- type=local\\,src=/cache/${DRONE_REPO} - type=local\\,src=/cache/${DRONE_REPO}
cache_to: cache_to:
- type=local,dest=/cache/${DRONE_REPO},mode=max - type=local,dest=/cache/${DRONE_REPO},mode=max
depends_on:
- create_tags
- name: ubuntu_20
image: thegeeklab/drone-docker-buildx:23
environment:
UBUNTU_VER: 20.04
settings:
<<: *settings
repo: ${DRONE_REPO_LINK:8}/ubuntu-20.04
- name: ubuntu_18
image: thegeeklab/drone-docker-buildx:23
environment:
UBUNTU_VER: 18.04
settings:
<<: *settings
repo: ${DRONE_REPO_LINK:8}/ubuntu-18.04