2022-09-20 09:09:47 +00:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
2022-09-20 09:56:23 +00:00
|
|
|
- name: build_and_publish_tag
|
2022-09-20 09:09:47 +00:00
|
|
|
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
|
2022-09-20 09:16:57 +00:00
|
|
|
context: docker
|
2022-09-20 09:18:38 +00:00
|
|
|
dockerfile: docker/Dockerfile
|
2022-09-20 09:09:47 +00:00
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
tags:
|
|
|
|
- latest
|
|
|
|
- ${DRONE_TAG}
|
|
|
|
- ${DRONE_SEMVER_MAJOR}.${DRONE_SEMVER_MINOR}
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- tag
|
|
|
|
|
2022-09-20 09:52:56 +00:00
|
|
|
- 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
|