This commit is contained in:
parent
309f5135c9
commit
2f0641a33b
57
.drone.yml
Normal file
57
.drone.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user