geeksstuffwiki/.drone.yml
Lulzette e5474789b0
All checks were successful
continuous-integration/drone Build is passing
continuous-integration/drone/push Build is passing
publish
2022-11-13 19:20:08 +03:00

38 lines
710 B
YAML

---
kind: pipeline
type: exec
name: build image
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
---
kind: pipeline
type: exec
name: deploy
steps:
- name: Run image
commands:
- docker run --name docs -p 8000:8000 -d git.lulzette.ru/lulzette/geeksstuffwiki:latest
trigger:
event:
- promote
target:
- production
node:
target: geeksstuffwiki
depends_on:
- build image