diff --git a/.drone.yml b/.drone.yml index 4486ad2..4075813 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,11 +3,6 @@ kind: pipeline type: exec name: build image -# trigger: -# event: -# exclude: -# - promote - steps: - name: build commands: @@ -22,32 +17,21 @@ steps: commands: - docker push git.lulzette.ru/lulzette/geeksstuffwiki:latest -# node: -# target: local - -# --- -# kind: pipeline -# type: exec -# name: deploy to test - -# steps: -# - name: Check playbook -# commands: -# - ansible-playbook -C playbook.yml - -# node: -# target: shell-scripts - --- kind: pipeline -type: docker -name: deploy to geeksstuffwiki.ru +type: exec +name: deploy steps: + - name: login + commands: + - docker login git.lulzette.ru -u lulzette -p $gitea_key + environment: + gitea_key: + from_secret: gitea_key + - name: Run image - image: git.lulzette.ru/lulzette/geeksstuffwiki:latest - pull: always - detach: true + command: docker run -d git.lulzette.ru/lulzette/geeksstuffwiki:latest trigger: event: