added cron and branch build
This commit is contained in:
parent
6468a01914
commit
06dec54029
21
.drone.yaml
21
.drone.yaml
@ -23,6 +23,27 @@ steps:
|
|||||||
event:
|
event:
|
||||||
- tag
|
- tag
|
||||||
|
|
||||||
|
- name: build_and_publish
|
||||||
|
image: plugins/docker:linux-amd64
|
||||||
|
settings:
|
||||||
|
force_tag: true
|
||||||
|
password:
|
||||||
|
from_secret: docker_password
|
||||||
|
registry: docker.asperti.com
|
||||||
|
repo: docker.asperti.com/paspo/python-runner
|
||||||
|
context: docker
|
||||||
|
dockerfile: docker/Dockerfile
|
||||||
|
username:
|
||||||
|
from_secret: docker_username
|
||||||
|
tags:
|
||||||
|
- latest
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- main
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
- cron
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
event:
|
event:
|
||||||
- tag
|
- tag
|
Loading…
Reference in New Issue
Block a user