deploy-gitea/.drone.yml

55 lines
1.2 KiB
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: docker.io/appleboy/drone-ssh:1.6.4
settings:
host:
from_secret: host
username:
from_secret: username
key:
from_secret: ssh-key
port: 22
command_timeout: 13m
2022-10-11 17:19:24 +02:00
use_insecure_cipher: false
script:
2022-10-11 14:06:38 +02:00
# giteaupdater updates to latest available
# commit unless $1 specifies otherwise.
- /usr/local/bin/giteaupdater 8752d89be7
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