38 lines
710 B
YAML
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 |