18 lines
450 B
YAML
18 lines
450 B
YAML
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
|
|
steps:
|
|
- name: build and push
|
|
image: docker:latest
|
|
commands:
|
|
- "docker build . 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 |