Compare commits

...

5 Commits

Author SHA1 Message Date
e5474789b0 publish
All checks were successful
continuous-integration/drone Build is passing
continuous-integration/drone/push Build is passing
2022-11-13 19:20:08 +03:00
b221fa3135 fix
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
2022-11-13 19:15:43 +03:00
75a90e6a3c fix deploy 2022-11-13 19:13:36 +03:00
23869939e8 Fix environment
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
2022-11-13 19:00:02 +03:00
e541a98978 Fuck
Some checks failed
continuous-integration/drone/push Build is failing
2022-11-13 18:57:15 +03:00
2 changed files with 9 additions and 28 deletions

View File

@@ -3,48 +3,29 @@ kind: pipeline
type: exec
name: build image
# trigger:
# event:
# exclude:
# - promote
steps:
- name: build
commands:
- docker build . -f git.lulzette.ru/lulzette/geeksstuffwiki:latest
- 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
type: exec
name: deploy
steps:
- name: Run image
image: git.lulzette.ru/lulzette/geeksstuffwiki:latest
pull: always
detach: true
commands:
- docker run --name docs -p 8000:8000 -d git.lulzette.ru/lulzette/geeksstuffwiki:latest
trigger:
event:

View File

@@ -28,4 +28,4 @@
Все данные помещаются в контейнер. Порт - 8000. docker-entry.sh - скрипт для запуска mkdocs.
1. Собирается докер образ.
2.
2. Поднимается на сервере после promote