fix deploy

This commit is contained in:
Lulzette 2022-11-13 19:13:36 +03:00
parent 23869939e8
commit 75a90e6a3c

View File

@ -3,11 +3,6 @@ kind: pipeline
type: exec
name: build image
# trigger:
# event:
# exclude:
# - promote
steps:
- name: build
commands:
@ -22,32 +17,21 @@ steps:
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: login
commands:
- docker login git.lulzette.ru -u lulzette -p $gitea_key
environment:
gitea_key:
from_secret: gitea_key
- name: Run image
image: git.lulzette.ru/lulzette/geeksstuffwiki:latest
pull: always
detach: true
command: docker run -d git.lulzette.ru/lulzette/geeksstuffwiki:latest
trigger:
event: