Restricting build to 'push' event only. Adding git commit SHA as tag.
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing

This commit is contained in:
Alexey Skobkin 2022-07-11 02:47:10 +03:00
parent 84cd13f1a6
commit 4b9df22e00
No known key found for this signature in database
GPG key ID: 5D5CEF6F221278E7

View file

@ -17,6 +17,11 @@ steps:
# - 'bin/console lint:yaml'
- name: docker-build
image: plugins/docker
when:
# branch:
# - master
event:
- push
settings:
username:
from_secret: docker_username
@ -24,4 +29,6 @@ steps:
from_secret: docker_token
repo:
from_secret: docker_repo
tags: latest
tags:
- latest
- ${DRONE_COMMIT_SHA:0:10}