fix deploy
This commit is contained in:
parent
23869939e8
commit
75a90e6a3c
36
.drone.yml
36
.drone.yml
@ -3,11 +3,6 @@ kind: pipeline
|
|||||||
type: exec
|
type: exec
|
||||||
name: build image
|
name: build image
|
||||||
|
|
||||||
# trigger:
|
|
||||||
# event:
|
|
||||||
# exclude:
|
|
||||||
# - promote
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
commands:
|
commands:
|
||||||
@ -22,32 +17,21 @@ steps:
|
|||||||
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: login
|
||||||
|
commands:
|
||||||
|
- docker login git.lulzette.ru -u lulzette -p $gitea_key
|
||||||
|
environment:
|
||||||
|
gitea_key:
|
||||||
|
from_secret: gitea_key
|
||||||
|
|
||||||
- name: Run image
|
- name: Run image
|
||||||
image: git.lulzette.ru/lulzette/geeksstuffwiki:latest
|
command: docker run -d git.lulzette.ru/lulzette/geeksstuffwiki:latest
|
||||||
pull: always
|
|
||||||
detach: true
|
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
event:
|
event:
|
||||||
|
Loading…
Reference in New Issue
Block a user