clang-llvm-meson-buildtools.../.drone.yml
Madeorsk 7d82720735
All checks were successful
continuous-integration/drone/push Build is passing
Improve drone CI to handle tags and build latest image on main branch only.
2021-08-01 01:41:54 +02:00

30 lines
594 B
YAML

kind: pipeline
type: docker
name: build-docker-image
steps:
- name: docker-latest
image: plugins/docker
settings:
repo: madeorsk/clang-llvm-meson-buildtools
username:
from_secret: docker_registry_username
password:
from_secret: docker_registry_password
when:
branch:
- main
- name: docker-tag
image: plugins/docker
settings:
repo: madeorsk/clang-llvm-meson-buildtools
tags: ${DRONE_TAG}
username:
from_secret: docker_registry_username
password:
from_secret: docker_registry_password
when:
ref:
- refs/tags/*