Update .drone.yml
continuous-integration/drone/tag Build is failing
Details
continuous-integration/drone/tag Build is failing
Details
parent
67798dac30
commit
0b5337d6f1
80
.drone.yml
80
.drone.yml
|
|
@ -6,46 +6,46 @@ clone:
|
||||||
tags: true
|
tags: true
|
||||||
|
|
||||||
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: test
|
# - name: build
|
||||||
# image: lorisleiva/laravel-docker
|
# image: lorisleiva/laravel-docker
|
||||||
# commands:
|
# commands:
|
||||||
# - ./vendor/bin/phpunit
|
# - composer global require humbug/box
|
||||||
#
|
# - git pull origin master --tags
|
||||||
# - name: github
|
# - php backupper app:build --build-version=$(git describe --abbrev=0 --tags) -n
|
||||||
# image: alpine/git
|
# - php builds/backupper
|
||||||
# environment:
|
# when:
|
||||||
# SSH_KEY:
|
# event: tag
|
||||||
# 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
|
|
||||||
image: lorisleiva/laravel-docker
|
|
||||||
commands:
|
|
||||||
- composer global require humbug/box
|
|
||||||
- git pull origin master --tags
|
|
||||||
- php backupper app:build --build-version=$(git describe --abbrev=0 --tags) -n
|
|
||||||
- php builds/backupper
|
|
||||||
when:
|
|
||||||
event: tag
|
|
||||||
|
|
||||||
- name: publish
|
- name: publish
|
||||||
image: plugins/github-release
|
image: plugins/github-release
|
||||||
|
|
@ -55,7 +55,5 @@ steps:
|
||||||
files:
|
files:
|
||||||
- builds/*
|
- builds/*
|
||||||
prerelease: true
|
prerelease: true
|
||||||
upload_url: https://api.github.com/repos/muhep06/dgd-backupper-php/releases
|
upload_url: /repos/muhep06/dgd-backupper-php/releases
|
||||||
base_url: https://api.github.com/repos/muhep06/dgd-backupper-php/releases
|
base_url: https://api.github.com
|
||||||
when:
|
|
||||||
event: tag
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue