Fix Deployments
continuous-integration/drone/tag Build is failing Details

This commit is contained in:
Philipp Lang 2023-07-25 12:27:34 +02:00
parent 4d97c6ff8a
commit 3dcab9d719
1 changed files with 15 additions and 26 deletions

View File

@ -95,11 +95,26 @@ steps:
- name: deploy
image: php:8.1.6
environment:
SSH_KEY:
from_secret: github_private_key
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
when:
event: tag
- name: github push
image: alpine/git
commands:
when:
branch: master
event: push
- name: composer_no_dev
image: composer:2.2.7
commands:
@ -114,32 +129,6 @@ steps:
when:
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:
- name: db
image: mariadb/server:10.3