Drone
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Lulzette 2022-11-13 18:54:55 +03:00
parent 309f5135c9
commit 2f0641a33b

57
.drone.yml Normal file
View File

@ -0,0 +1,57 @@
---
kind: pipeline
type: exec
name: build image
# trigger:
# event:
# exclude:
# - promote
steps:
- name: build
commands:
- docker build . -f git.lulzette.ru/lulzette/geeksstuffwiki:latest
- name: login
commands:
- docker login git.lulzette.ru -u lulzette -p $gitea_key
- name: push
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
steps:
- name: Run image
image: git.lulzette.ru/lulzette/geeksstuffwiki:latest
pull: always
detach: true
trigger:
event:
- promote
target:
- production
node:
target: geeksstuffwiki
depends_on:
- build image