Update .drone.yml

pull/1/head
Muhep Atasoy 2019-12-15 23:37:03 +03:00
parent 0b5337d6f1
commit 0b90045f52
1 changed files with 30 additions and 34 deletions

View File

@ -11,32 +11,32 @@ steps:
# 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: 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: build
# image: lorisleiva/laravel-docker # image: lorisleiva/laravel-docker
# commands: # commands:
@ -48,12 +48,8 @@ steps:
# event: tag # event: tag
- name: publish - name: publish
image: plugins/github-release image: lorisleiva/laravel-docker
settings: commands:
api_key: - wget https://github.com/tfausak/github-release/releases/download/1.2.5/github-release-linux.gz
from_secret: api_key - gzip -d github-release-linux.gz
files: - ls -all
- builds/*
prerelease: true
upload_url: /repos/muhep06/dgd-backupper-php/releases
base_url: https://api.github.com