parent
4d97c6ff8a
commit
3dcab9d719
41
.drone.yml
41
.drone.yml
|
@ -95,11 +95,26 @@ steps:
|
||||||
|
|
||||||
- name: deploy
|
- name: deploy
|
||||||
image: php:8.1.6
|
image: php:8.1.6
|
||||||
|
environment:
|
||||||
|
SSH_KEY:
|
||||||
|
from_secret: github_private_key
|
||||||
commands:
|
commands:
|
||||||
|
- mkdir $HOME/.ssh
|
||||||
|
- echo "UserKnownHostsFile=/dev/null" >> $HOME/.ssh/config
|
||||||
|
- echo "StrictHostKeyChecking=no" >> $HOME/.ssh/config
|
||||||
|
- echo "$SSH_KEY" > $HOME/.ssh/id_rsa
|
||||||
|
- chmod 600 $HOME/.ssh/id_rsa
|
||||||
- ./vendor/bin/envoy run deploy
|
- ./vendor/bin/envoy run deploy
|
||||||
when:
|
when:
|
||||||
event: tag
|
event: tag
|
||||||
|
|
||||||
|
- name: github push
|
||||||
|
image: alpine/git
|
||||||
|
commands:
|
||||||
|
when:
|
||||||
|
branch: master
|
||||||
|
event: push
|
||||||
|
|
||||||
- name: composer_no_dev
|
- name: composer_no_dev
|
||||||
image: composer:2.2.7
|
image: composer:2.2.7
|
||||||
commands:
|
commands:
|
||||||
|
@ -114,32 +129,6 @@ steps:
|
||||||
when:
|
when:
|
||||||
event: tag
|
event: tag
|
||||||
|
|
||||||
- name: gitea_release
|
|
||||||
image: plugins/gitea-release
|
|
||||||
settings:
|
|
||||||
api_key:
|
|
||||||
from_secret: gitea_api_key
|
|
||||||
base_url: https://git.zoomyboy.de
|
|
||||||
files: ./nami.tar.gz
|
|
||||||
when:
|
|
||||||
event: tag
|
|
||||||
|
|
||||||
- name: github push
|
|
||||||
image: alpine/git
|
|
||||||
environment:
|
|
||||||
SSH_KEY:
|
|
||||||
from_secret: github_private_key
|
|
||||||
commands:
|
|
||||||
- mkdir $HOME/.ssh
|
|
||||||
- git config core.sshCommand "ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no"
|
|
||||||
- echo "$SSH_KEY" > $HOME/.ssh/id_rsa
|
|
||||||
- chmod 600 $HOME/.ssh/id_rsa
|
|
||||||
- git remote add gh git@github.com:zoomyboy/adrema.git
|
|
||||||
- git push -f gh HEAD:master
|
|
||||||
when:
|
|
||||||
branch: master
|
|
||||||
event: push
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- name: db
|
- name: db
|
||||||
image: mariadb/server:10.3
|
image: mariadb/server:10.3
|
||||||
|
|
Loading…
Reference in New Issue