Update .drone.yml
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
parent
8d9c4892f5
commit
3f83ee4082
69
.drone.yml
69
.drone.yml
|
|
@ -3,34 +3,47 @@ name: default
|
||||||
type: docker
|
type: docker
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: composer
|
# - name: composer
|
||||||
pull: if-not-exists
|
# pull: if-not-exists
|
||||||
image: composer
|
# image: composer
|
||||||
commands:
|
# commands:
|
||||||
- composer install --prefer-dist
|
# - composer install --prefer-dist
|
||||||
|
#
|
||||||
|
# - name: test
|
||||||
|
# image: lorisleiva/laravel-docker
|
||||||
|
# commands:
|
||||||
|
# - ./vendor/bin/phpunit
|
||||||
|
#
|
||||||
|
# - name: github
|
||||||
|
# image: alpine/git
|
||||||
|
# environment:
|
||||||
|
# SSH_KEY:
|
||||||
|
# from_secret: id_rsa
|
||||||
|
# SSH_KEY_PUB:
|
||||||
|
# from_secret: id_rsa_pub
|
||||||
|
# commands:
|
||||||
|
# - mkdir ~/.ssh
|
||||||
|
# - echo "$SSH_KEY" | tr -d '\r' > ~/.ssh/id_rsa
|
||||||
|
# - echo "$SSH_KEY_PUB" | tr -d '\r' > ~/.ssh/id_rsa.pub
|
||||||
|
# - chmod 755 ~/.ssh
|
||||||
|
# - chmod 600 ~/.ssh/id_rsa
|
||||||
|
# - chmod 600 ~/.ssh/id_rsa.pub
|
||||||
|
# - eval $(ssh-agent)
|
||||||
|
# - ssh-add ~/.ssh/id_rsa
|
||||||
|
# - ssh-keyscan -H 'github.com' >> ~/.ssh/known_hosts
|
||||||
|
# - git remote add github git@github.com:muhep06/dgd-backupper-php.git
|
||||||
|
# - git push github master -f
|
||||||
|
|
||||||
|
- name: build
|
||||||
- name: test
|
|
||||||
image: lorisleiva/laravel-docker
|
image: lorisleiva/laravel-docker
|
||||||
commands:
|
commands:
|
||||||
- ./vendor/bin/phpunit
|
- curl -s https://api.github.com/repos/pantheon-systems/autotag/releases/latest | \
|
||||||
|
grep browser_download | \
|
||||||
- name: github
|
grep Linux | \
|
||||||
image: alpine/git
|
cut -d '"' -f 4 | \
|
||||||
environment:
|
xargs curl -o ./autotag -L \
|
||||||
SSH_KEY:
|
&& chmod 755 ./autotag
|
||||||
from_secret: id_rsa
|
- autotag
|
||||||
SSH_KEY_PUB:
|
# - composer global require humbug/box
|
||||||
from_secret: id_rsa_pub
|
# - php backupper app:build --build-version -n
|
||||||
commands:
|
# - php builds/backupper
|
||||||
- mkdir ~/.ssh
|
|
||||||
- echo "$SSH_KEY" | tr -d '\r' > ~/.ssh/id_rsa
|
|
||||||
- echo "$SSH_KEY_PUB" | tr -d '\r' > ~/.ssh/id_rsa.pub
|
|
||||||
- chmod 755 ~/.ssh
|
|
||||||
- chmod 600 ~/.ssh/id_rsa
|
|
||||||
- chmod 600 ~/.ssh/id_rsa.pub
|
|
||||||
- eval $(ssh-agent)
|
|
||||||
- ssh-add ~/.ssh/id_rsa
|
|
||||||
- ssh-keyscan -H 'github.com' >> ~/.ssh/known_hosts
|
|
||||||
- git remote add github git@github.com:muhep06/dgd-backupper-php.git
|
|
||||||
- git push github master
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue