17 lines
427 B
YAML
17 lines
427 B
YAML
---
|
|
kind: pipeline
|
|
type: exec
|
|
name: default
|
|
|
|
steps:
|
|
- name: build and push
|
|
commands:
|
|
- "docker build -t plnk . "
|
|
- "echo $PLNK_REGISTRY_PASSWD | docker login --password-stdin --username drone https://plnk.littleoni.net"
|
|
- "docker tag plnk plnk.littleoni.net/plnk:${DRONE_TAG##v}"
|
|
when:
|
|
event:
|
|
- tag
|
|
environment:
|
|
PLNK_REGISTRY_PASSWD:
|
|
from_secret: PLNK_REGISTRY_PASSWD |