34 lines
635 B
YAML
34 lines
635 B
YAML
---
|
|
kind: secret
|
|
name: docker_username
|
|
get:
|
|
path: docker
|
|
name: username
|
|
---
|
|
kind: secret
|
|
name: docker_password
|
|
get:
|
|
path: docker
|
|
name: password
|
|
---
|
|
kind: pipeline
|
|
type: kubernetes
|
|
name: build
|
|
steps:
|
|
- name: publish
|
|
image: plugins/kaniko
|
|
environment:
|
|
VERSION: 1.22.0
|
|
settings:
|
|
build_args:
|
|
- VERSION=1.22.0
|
|
repo: docker.io/jcollie/healthchecks
|
|
repository: docker.io
|
|
username:
|
|
from_secret: docker_username
|
|
password:
|
|
from_secret: docker_password
|
|
tags:
|
|
- latest
|
|
- latest-${DRONE_BUILD_NUMBER}
|
|
- ${VERSION}-${DRONE_BUILD_NUMBER}
|