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