geeksstuffwiki/.drone.yml
Lulzette 23869939e8
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
Fix environment
2022-11-13 19:00:02 +03:00

60 lines
991 B
YAML

---
kind: pipeline
type: exec
name: build image
# trigger:
# event:
# exclude:
# - promote
steps:
- name: build
commands:
- docker build . -t git.lulzette.ru/lulzette/geeksstuffwiki:latest
- name: login
commands:
- docker login git.lulzette.ru -u lulzette -p $gitea_key
environment:
gitea_key:
from_secret: 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