Production build promotion

This commit is contained in:
Adam Štrauch 2021-09-21 23:20:54 +02:00
parent 8c95c1097d
commit 79adec3c8f
Signed by: cx
GPG Key ID: 018304FFA8988F8D

View File

@ -12,3 +12,31 @@ steps:
- name: build
commands:
- make build
---
kind: pipeline
type: ssh
name: image builder
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