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 type: exec
name: build image name: build image
# trigger:
# event:
# exclude:
# - promote
steps: steps:
- name: build - name: build
commands: commands:
- docker build . -f git.lulzette.ru/lulzette/geeksstuffwiki:latest - docker build . -t git.lulzette.ru/lulzette/geeksstuffwiki:latest
- name: login - name: login
commands: commands:
- docker login git.lulzette.ru -u lulzette -p $gitea_key - docker login git.lulzette.ru -u lulzette -p $gitea_key
environment:
gitea_key:
from_secret: gitea_key
- name: push - name: push
commands: commands:
- docker push git.lulzette.ru/lulzette/geeksstuffwiki:latest - 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 kind: pipeline
type: docker type: exec
name: deploy to geeksstuffwiki.ru name: deploy
steps: steps:
- name: Run image - name: Run image
image: git.lulzette.ru/lulzette/geeksstuffwiki:latest commands:
pull: always - docker run --name docs -p 8000:8000 -d git.lulzette.ru/lulzette/geeksstuffwiki:latest
detach: true
trigger: trigger:
event: event:

View File

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