deploy-gitea/.drone.yml

51 lines
1015 B
YAML
Raw Normal View History

2021-08-04 03:33:31 +02:00
---
kind: pipeline
type: docker
2021-08-04 03:33:31 +02:00
name: deploy
platform:
os: linux
arch: amd64
trigger:
branch:
- development
2021-08-04 04:10:52 +02:00
event: [push]
2021-08-04 03:33:31 +02:00
steps:
- name: deploy
depends_on: [clone]
image: appleboy/drone-ssh
settings:
host:
from_secret: host
username:
from_secret: username
key:
from_secret: ssh-key
port: 22
script:
2021-08-05 23:56:35 +02:00
- /usr/local/bin/giteaupdater
2021-08-09 23:16:51 +02:00
2022-10-11 14:02:34 +02:00
# simply demonstrate we're able to run ansible.
2021-08-09 23:16:51 +02:00
- name: ansible - sayhi
image: plugins/ansible:3.0.0
environment:
2022-03-22 13:24:39 +01:00
ANSIBLE_CONFIG: ansible/ansible.cfg
2021-08-09 23:16:51 +02:00
DEFAULT_REMOTE_USER:
from_secret: username
settings:
2022-03-22 13:24:39 +01:00
playbook: ansible/playbooks/playbook.yml
inventory: ansible/inventory
2021-08-09 23:16:51 +02:00
extra_vars:
'additional_var=footestpls,another_var=bartest'
ssh_extra_args: "'-o StrictHostKeyChecking=no'"
private_key:
from_secret: ssh-key
verbose: 2
user:
from_secret: username
when:
event:
- push