parent
a34d5ad305
commit
5b81c205f3
21
.drone.yml
21
.drone.yml
|
@ -8,16 +8,7 @@ workspace:
|
||||||
steps:
|
steps:
|
||||||
- name: submodules
|
- name: submodules
|
||||||
image: alpine/git
|
image: alpine/git
|
||||||
environment:
|
|
||||||
SSH_KEY:
|
|
||||||
from_secret: private_key
|
|
||||||
KNOWN_HOSTS:
|
|
||||||
from_secret: known_hosts
|
|
||||||
commands:
|
commands:
|
||||||
- mkdir $HOME/.ssh
|
|
||||||
- echo "$SSH_KEY" > $HOME/.ssh/id_rsa
|
|
||||||
- echo "$KNOWN_HOSTS" > $HOME/.ssh/known_hosts
|
|
||||||
- chmod 600 $HOME/.ssh/id_rsa
|
|
||||||
- git submodule update --init --recursive
|
- git submodule update --init --recursive
|
||||||
|
|
||||||
- name: composer_dev
|
- name: composer_dev
|
||||||
|
@ -153,6 +144,18 @@ steps:
|
||||||
branch: master
|
branch: master
|
||||||
event: push
|
event: push
|
||||||
|
|
||||||
|
- name: github-push
|
||||||
|
image: appleboy/drone-git-push
|
||||||
|
settings:
|
||||||
|
branch: master
|
||||||
|
remote: git@github.com:zoomyboy/adrema.git
|
||||||
|
force: true
|
||||||
|
commit: false
|
||||||
|
ssh_key:
|
||||||
|
from_secret: github_private_key
|
||||||
|
when:
|
||||||
|
event: push
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- name: db
|
- name: db
|
||||||
image: mariadb/server:10.3
|
image: mariadb/server:10.3
|
||||||
|
|
Loading…
Reference in New Issue