This commit is contained in:
parent
fbac6c8b73
commit
4e71ad9ef4
1 changed files with 23 additions and 2 deletions
25
.drone.yml
25
.drone.yml
|
@ -1,7 +1,7 @@
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
name: deploy
|
name: deploy
|
||||||
steps:
|
steps:
|
||||||
- name: docker
|
- name: docker
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
username:
|
username:
|
||||||
|
@ -11,4 +11,25 @@ steps:
|
||||||
repo: aaronriedel/ansible-lint
|
repo: aaronriedel/ansible-lint
|
||||||
tags:
|
tags:
|
||||||
- latest
|
- latest
|
||||||
- ${DRONE_COMMIT_SHA:0:8}
|
- ${DRONE_BUILD_NUMBER}
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- main
|
||||||
|
- name: docker-build
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
|
username:
|
||||||
|
from_secret: DOCKER_USERNAME
|
||||||
|
password:
|
||||||
|
from_secret: DOCKER_PASSWORD
|
||||||
|
repo: aaronriedel/ansible-lint
|
||||||
|
tags: latest
|
||||||
|
dry_run: true
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
exclude:
|
||||||
|
- main
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
include:
|
||||||
|
- push
|
Loading…
Reference in a new issue