runtime/.drone.yml

43 lines
595 B
YAML
Raw Normal View History

2021-09-20 22:53:02 +00:00
kind: pipeline
2021-09-21 11:32:48 +00:00
type: ssh
2021-09-21 12:41:59 +00:00
name: image builder
2021-09-20 22:53:02 +00:00
2021-09-21 11:32:48 +00:00
server:
host: 192.168.1.2
user: build
password:
from_secret: ssh_password
2021-09-20 22:53:02 +00:00
steps:
- name: build
2021-09-21 11:32:48 +00:00
commands:
- make build
2021-09-21 21:20:54 +00:00
---
kind: pipeline
type: ssh
2021-09-21 21:21:19 +00:00
name: production image builder
2021-09-21 21:20:54 +00:00
server:
host: 192.168.1.2
user: build
password:
from_secret: ssh_password
steps:
- name: build
environment:
DOCKER_USERNAME: creckx
DOCKER_PASSWORD:
from_secret: docker_password
commands:
- docker login -u $DOCKER_USERNAME --password $DOCKER_PASSWORD
- make push
trigger:
event:
- promote
target:
- production