From 79adec3c8f35774b4240ace0d8731f11bd4915d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20=C5=A0trauch?= Date: Tue, 21 Sep 2021 23:20:54 +0200 Subject: [PATCH] Production build promotion --- .drone.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.drone.yml b/.drone.yml index 7e3caf7..4b8b150 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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