Improve drone CI to handle tags and build latest image on main branch only.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
a7a7eb95c0
commit
7d82720735
18
.drone.yml
18
.drone.yml
@ -3,7 +3,7 @@ type: docker
|
||||
name: build-docker-image
|
||||
|
||||
steps:
|
||||
- name: docker
|
||||
- name: docker-latest
|
||||
image: plugins/docker
|
||||
settings:
|
||||
repo: madeorsk/clang-llvm-meson-buildtools
|
||||
@ -11,3 +11,19 @@ steps:
|
||||
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/*
|
||||
|
Loading…
Reference in New Issue
Block a user