Files
ubuntu/.drone.yml
Ameer Hamza Khan bb6dc6ab2e
Some checks failed
continuous-integration/drone/push Build is failing
Improved the script to add more useful packages and improved the entrypoint script.
2025-07-27 13:09:14 +00:00

68 lines
1.7 KiB
YAML

kind: pipeline
type: docker
name: ubuntu
steps:
- name: create_tags
image: ubuntu:latest
commands:
- echo "$(date "+%Y-%m-%d"), latest" > .tags
- name: ubuntu-24
image: &image thegeeklab/drone-docker-buildx:24
depends_on: &depends
- create_tags
environment:
UBUNTU_VER: 24.04
settings: &settings
registry:
from_secret: package-repo
username:
from_secret: gitea-username
password:
from_secret: gitea-password
repo: ${DRONE_REPO_LINK:8}/ubuntu-24.04
extra_tags:
- ${DRONE_REPO_LINK:8}:24.04
- ${DRONE_REPO_LINK:8}:latest
build_args_from_env:
UBUNTU_VER
platforms:
- linux/amd64
- linux/arm64
provenance: false
cache_from:
- type=local\\,src=/cache/${DRONE_REPO}/ubuntu-24.04
cache_to:
- type=local,dest=/cache/${DRONE_REPO}/ubuntu-24.04,mode=max
- name: ubuntu-22
image: *image
depends_on: *depends
environment:
UBUNTU_VER: 22.04
settings:
<<: *settings
repo: ${DRONE_REPO_LINK:8}/ubuntu-22.04
extra_tags:
- ${DRONE_REPO_LINK:8}:22.04
cache_from:
- type=local\\,src=/cache/${DRONE_REPO}/ubuntu-22.04
cache_to:
- type=local,dest=/cache/${DRONE_REPO}/ubuntu-22.04,mode=max
- name: ubuntu-20
image: *image
depends_on: *depends
environment:
UBUNTU_VER: 20.04
settings:
<<: *settings
repo: ${DRONE_REPO_LINK:8}/ubuntu-20.04
extra_tags:
- ${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