Restricting build to 'push' event only. Adding git commit SHA as tag.
This commit is contained in:
parent
84cd13f1a6
commit
4b9df22e00
|
@ -17,6 +17,11 @@ steps:
|
||||||
# - 'bin/console lint:yaml'
|
# - 'bin/console lint:yaml'
|
||||||
- name: docker-build
|
- name: docker-build
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
|
when:
|
||||||
|
# branch:
|
||||||
|
# - master
|
||||||
|
event:
|
||||||
|
- push
|
||||||
settings:
|
settings:
|
||||||
username:
|
username:
|
||||||
from_secret: docker_username
|
from_secret: docker_username
|
||||||
|
@ -24,4 +29,6 @@ steps:
|
||||||
from_secret: docker_token
|
from_secret: docker_token
|
||||||
repo:
|
repo:
|
||||||
from_secret: docker_repo
|
from_secret: docker_repo
|
||||||
tags: latest
|
tags:
|
||||||
|
- latest
|
||||||
|
- ${DRONE_COMMIT_SHA:0:10}
|
||||||
|
|
Loading…
Reference in a new issue