Simon Cornet
38174a52ba
All checks were successful
continuous-integration/drone/push Build is passing
40 lines
656 B
YAML
40 lines
656 B
YAML
---
|
|
kind: 'pipeline'
|
|
name: 'build'
|
|
type: 'kubernetes'
|
|
|
|
steps:
|
|
|
|
# build and publish
|
|
- image: 'plugins/docker'
|
|
name: 'publish'
|
|
pull: 'always'
|
|
when:
|
|
branch:
|
|
- 'master'
|
|
event:
|
|
- 'push'
|
|
|
|
settings:
|
|
|
|
# registery and repos
|
|
registry: 'cr.simoncor.net'
|
|
cache_from: 'siempie/ansible-deployment'
|
|
repo: 'cr.simoncor.net/siempie/ansible-deployment'
|
|
mtu: '1440'
|
|
|
|
# build stuff
|
|
dockerfile: 'Dockerfile.linux.amd64'
|
|
daemon_off: 'false'
|
|
|
|
# authentication
|
|
username:
|
|
from_secret: 'docker_username'
|
|
password:
|
|
from_secret: 'docker_password'
|
|
|
|
# tags
|
|
tags:
|
|
- 'latest'
|
|
- 'v30'
|