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

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
1 changed files with 8 additions and 1 deletions

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}