Compare commits
51 Commits
13e28a463a
...
d784de6bde
| Author | SHA1 | Date |
|---|---|---|
|
|
d784de6bde | |
|
|
9ea7ba4bf2 | |
|
|
eca1e10ee2 | |
|
|
b4c098d0c1 | |
|
|
9d394b5ff9 | |
|
|
2cce66600b | |
|
|
fe2cc8769d | |
|
|
817a9388d7 | |
|
|
0c8bfef815 | |
|
|
bee4661aa8 | |
|
|
b1cc51576b | |
|
|
9383b0fa4c | |
|
|
56cfb0853d | |
|
|
0b90045f52 | |
|
|
0b5337d6f1 | |
|
|
67798dac30 | |
|
|
60dd7fa45b | |
|
|
d08f60c71a | |
|
|
98393d73be | |
|
|
dd5021230f | |
|
|
737c31f0c5 | |
|
|
3ddaf5c913 | |
|
|
2a7ec0e938 | |
|
|
b3edd77eff | |
|
|
1957dda0b6 | |
|
|
1c8c341e71 | |
|
|
64cd39df5d | |
|
|
feb7c017ae | |
|
|
77ac031853 | |
|
|
bcf3320dbf | |
|
|
8ab1f60bc3 | |
|
|
37d73181e3 | |
|
|
62b51b4318 | |
|
|
92e85f1f64 | |
|
|
816d062675 | |
|
|
8175b0cc20 | |
|
|
bbf58f9720 | |
|
|
79a435529e | |
|
|
cbe031b52a | |
|
|
e930e969ef | |
|
|
66927dde1d | |
|
|
cbe497501d | |
|
|
8e87524db2 | |
|
|
f59e4feb30 | |
|
|
f96c87c74e | |
|
|
f33bda8cd6 | |
|
|
b5d1d1783a | |
|
|
9a2edd2797 | |
|
|
21cd7d862b | |
|
|
227b1f8e9b | |
|
|
a7a559f9e8 |
95
.drone.yml
95
.drone.yml
|
|
@ -2,48 +2,63 @@ kind: pipeline
|
||||||
name: default
|
name: default
|
||||||
type: docker
|
type: docker
|
||||||
|
|
||||||
|
clone:
|
||||||
|
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
|
- name: test
|
||||||
# image: lorisleiva/laravel-docker
|
image: lorisleiva/laravel-docker
|
||||||
# commands:
|
commands:
|
||||||
# - ./vendor/bin/phpunit
|
- ./vendor/bin/phpunit
|
||||||
#
|
|
||||||
# - name: github
|
- name: github
|
||||||
# image: alpine/git
|
image: alpine/git
|
||||||
# environment:
|
environment:
|
||||||
# SSH_KEY:
|
SSH_KEY:
|
||||||
# from_secret: id_rsa
|
from_secret: id_rsa
|
||||||
# SSH_KEY_PUB:
|
SSH_KEY_PUB:
|
||||||
# from_secret: id_rsa_pub
|
from_secret: id_rsa_pub
|
||||||
# commands:
|
commands:
|
||||||
# - mkdir ~/.ssh
|
- mkdir ~/.ssh
|
||||||
# - echo "$SSH_KEY" | tr -d '\r' > ~/.ssh/id_rsa
|
- echo "$SSH_KEY" | tr -d '\r' > ~/.ssh/id_rsa
|
||||||
# - echo "$SSH_KEY_PUB" | tr -d '\r' > ~/.ssh/id_rsa.pub
|
- echo "$SSH_KEY_PUB" | tr -d '\r' > ~/.ssh/id_rsa.pub
|
||||||
# - chmod 755 ~/.ssh
|
- chmod 755 ~/.ssh
|
||||||
# - chmod 600 ~/.ssh/id_rsa
|
- chmod 600 ~/.ssh/id_rsa
|
||||||
# - chmod 600 ~/.ssh/id_rsa.pub
|
- chmod 600 ~/.ssh/id_rsa.pub
|
||||||
# - eval $(ssh-agent)
|
- eval $(ssh-agent)
|
||||||
# - ssh-add ~/.ssh/id_rsa
|
- ssh-add ~/.ssh/id_rsa
|
||||||
# - ssh-keyscan -H 'github.com' >> ~/.ssh/known_hosts
|
- ssh-keyscan -H 'github.com' >> ~/.ssh/known_hosts
|
||||||
# - git remote add github git@github.com:muhep06/dgd-backupper-php.git
|
- git remote add github git@github.com:muhep06/dgd-backupper-php.git
|
||||||
# - git push github master -f
|
- git push github master --tags
|
||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
image: lorisleiva/laravel-docker
|
image: lorisleiva/laravel-docker
|
||||||
commands:
|
commands:
|
||||||
- curl -s https://api.github.com/repos/pantheon-systems/autotag/releases/latest | \
|
- composer global require humbug/box
|
||||||
grep browser_download | \
|
- git pull origin master --tags
|
||||||
grep Linux | \
|
- php backupper app:build --build-version=$(git describe --abbrev=0 --tags) -n
|
||||||
cut -d '"' -f 4 | \
|
- php builds/backupper
|
||||||
xargs curl -o ./autotag -L \
|
when:
|
||||||
&& chmod 755 ./autotag
|
event: tag
|
||||||
- autotag
|
|
||||||
# - composer global require humbug/box
|
- name: publish
|
||||||
# - php backupper app:build --build-version -n
|
image: lorisleiva/laravel-docker
|
||||||
# - php builds/backupper
|
environment:
|
||||||
|
GITHUB_TOKEN:
|
||||||
|
from_secret: api_key
|
||||||
|
commands:
|
||||||
|
- git pull origin master --tags
|
||||||
|
- wget https://github.com/aktau/github-release/releases/download/v0.7.2/linux-amd64-github-release.tar.bz2
|
||||||
|
- tar xjf linux-amd64-github-release.tar.bz2
|
||||||
|
- chmod +x ./bin/linux/amd64/github-release
|
||||||
|
- mv ./bin/linux/amd64/github-release .
|
||||||
|
- ./github-release release --user muhep06 --repo dgd-backupper-php --tag $(git describe --abbrev=0 --tags) --name "$(git describe --abbrev=0 --tags)"
|
||||||
|
- ./github-release upload --user muhep06 --repo dgd-backupper-php --tag $(git describe --abbrev=0 --tags) --name "backupper" --file ./builds/backupper
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue