2020-12-25 20:07:56 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
2021-01-03 20:48:18 +00:00
|
|
|
type: exec
|
2020-12-25 20:07:56 +00:00
|
|
|
name: main
|
|
|
|
|
2020-12-28 05:16:38 +00:00
|
|
|
trigger:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
|
2021-01-03 20:48:18 +00:00
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
|
2020-12-25 20:07:56 +00:00
|
|
|
steps:
|
|
|
|
- name: build
|
|
|
|
commands:
|
2020-12-28 05:15:52 +00:00
|
|
|
- docker build -t registry.jfmonty2.com/minebot:latest .
|
2020-12-25 20:07:56 +00:00
|
|
|
|
|
|
|
- name: deploy
|
2020-12-28 04:42:44 +00:00
|
|
|
environment:
|
|
|
|
REGISTRY_PWD:
|
|
|
|
from_secret: registry_pwd
|
2020-12-25 20:07:56 +00:00
|
|
|
commands:
|
2020-12-28 05:15:52 +00:00
|
|
|
- echo $REGISTRY_PWD | docker login -u drone --password-stdin registry.jfmonty2.com
|
|
|
|
- docker push registry.jfmonty2.com/minebot:latest
|