Compare commits

...

51 Commits

Author SHA1 Message Date
Muhep Atasoy d784de6bde Merge branch 'master' of muhep/dgd-backupper-php into master
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is failing Details
2019-12-15 21:14:23 +00:00
Muhep Atasoy 9ea7ba4bf2 Update .drone.yml
continuous-integration/drone/pr Build is failing Details
2019-12-16 00:09:51 +03:00
Muhep Atasoy eca1e10ee2 Update .drone.yml 2019-12-16 00:01:29 +03:00
Muhep Atasoy b4c098d0c1 Update .drone.yml
continuous-integration/drone/tag Build is failing Details
2019-12-15 23:53:48 +03:00
Muhep Atasoy 9d394b5ff9 Update .drone.yml 2019-12-15 23:52:59 +03:00
Muhep Atasoy 2cce66600b Update .drone.yml 2019-12-15 23:47:58 +03:00
Muhep Atasoy fe2cc8769d Update .drone.yml 2019-12-15 23:46:16 +03:00
Muhep Atasoy 817a9388d7 Update .drone.yml 2019-12-15 23:43:33 +03:00
Muhep Atasoy 0c8bfef815 Update .drone.yml 2019-12-15 23:43:00 +03:00
Muhep Atasoy bee4661aa8 Update .drone.yml 2019-12-15 23:42:36 +03:00
Muhep Atasoy b1cc51576b Update .drone.yml 2019-12-15 23:41:29 +03:00
Muhep Atasoy 9383b0fa4c Update .drone.yml 2019-12-15 23:40:33 +03:00
Muhep Atasoy 56cfb0853d Update .drone.yml 2019-12-15 23:39:33 +03:00
Muhep Atasoy 0b90045f52 Update .drone.yml 2019-12-15 23:37:03 +03:00
Muhep Atasoy 0b5337d6f1 Update .drone.yml
continuous-integration/drone/tag Build is failing Details
2019-12-15 21:25:05 +03:00
Muhep Atasoy 67798dac30 Update .drone.yml
continuous-integration/drone/tag Build was killed Details
2019-12-15 21:20:41 +03:00
Muhep Atasoy 60dd7fa45b Update .drone.yml
continuous-integration/drone/tag Build was killed Details
2019-12-15 21:13:03 +03:00
Muhep Atasoy d08f60c71a Update .drone.yml 2019-12-15 21:12:47 +03:00
Muhep Atasoy 98393d73be Update .drone.yml
continuous-integration/drone/tag Build was killed Details
2019-12-15 21:07:46 +03:00
Muhep Atasoy dd5021230f Update .drone.yml 2019-12-15 21:06:37 +03:00
Muhep Atasoy 737c31f0c5 Update .drone.yml 2019-12-15 21:06:03 +03:00
Muhep Atasoy 3ddaf5c913 Update .drone.yml 2019-12-15 21:02:12 +03:00
Muhep Atasoy 2a7ec0e938 Update .drone.yml 2019-12-15 21:00:10 +03:00
Muhep Atasoy b3edd77eff Update .drone.yml 2019-12-15 20:59:37 +03:00
Muhep Atasoy 1957dda0b6 Update .drone.yml 2019-12-15 20:59:07 +03:00
Muhep Atasoy 1c8c341e71 Update .drone.yml 2019-12-15 20:58:21 +03:00
Muhep Atasoy 64cd39df5d Update .drone.yml
continuous-integration/drone/tag Build is failing Details
2019-12-15 20:46:53 +03:00
Muhep Atasoy feb7c017ae Update .drone.yml 2019-12-15 20:46:17 +03:00
Muhep Atasoy 77ac031853 Update .drone.yml 2019-12-15 20:44:33 +03:00
Muhep Atasoy bcf3320dbf Update .drone.yml
continuous-integration/drone/tag Build is failing Details
2019-12-15 20:29:02 +03:00
Muhep Atasoy 8ab1f60bc3 Update .drone.yml 2019-12-15 20:24:55 +03:00
Muhep Atasoy 37d73181e3 Update .drone.yml 2019-12-15 20:17:43 +03:00
Muhep Atasoy 62b51b4318 Update .drone.yml 2019-12-15 20:16:32 +03:00
Muhep Atasoy 92e85f1f64 Update .drone.yml 2019-12-15 20:15:15 +03:00
Muhep Atasoy 816d062675 Update .drone.yml 2019-12-15 20:14:09 +03:00
Muhep Atasoy 8175b0cc20 Update .drone.yml 2019-12-15 20:13:45 +03:00
Muhep Atasoy bbf58f9720 Update .drone.yml 2019-12-15 20:13:07 +03:00
Muhep Atasoy 79a435529e Update .drone.yml 2019-12-15 20:12:49 +03:00
Muhep Atasoy cbe031b52a Update .drone.yml 2019-12-15 20:12:30 +03:00
Muhep Atasoy e930e969ef Update .drone.yml 2019-12-15 20:12:12 +03:00
Muhep Atasoy 66927dde1d Update .drone.yml 2019-12-15 20:08:41 +03:00
Muhep Atasoy cbe497501d Update .drone.yml 2019-12-15 20:07:21 +03:00
Muhep Atasoy 8e87524db2 Update .drone.yml 2019-12-15 20:06:52 +03:00
Muhep Atasoy f59e4feb30 Update .drone.yml 2019-12-15 20:03:29 +03:00
Muhep Atasoy f96c87c74e Update .drone.yml 2019-12-15 20:01:01 +03:00
Muhep Atasoy f33bda8cd6 Update .drone.yml 2019-12-15 19:59:41 +03:00
Muhep Atasoy b5d1d1783a Update .drone.yml 2019-12-15 19:58:44 +03:00
Muhep Atasoy 9a2edd2797 Update .drone.yml 2019-12-15 19:58:27 +03:00
Muhep Atasoy 21cd7d862b Update .drone.yml 2019-12-15 19:58:00 +03:00
Muhep Atasoy 227b1f8e9b Update .drone.yml 2019-12-15 19:55:29 +03:00
Muhep Atasoy a7a559f9e8 Update .drone.yml 2019-12-15 19:54:17 +03:00
1 changed files with 55 additions and 40 deletions

View File

@ -2,48 +2,63 @@ kind: pipeline
name: default
type: docker
clone:
tags: true
steps:
# - name: composer
# pull: if-not-exists
# image: composer
# commands:
# - 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: composer
pull: if-not-exists
image: composer
commands:
- 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 --tags
- name: build
image: lorisleiva/laravel-docker
commands:
- curl -s https://api.github.com/repos/pantheon-systems/autotag/releases/latest | \
grep browser_download | \
grep Linux | \
cut -d '"' -f 4 | \
xargs curl -o ./autotag -L \
&& chmod 755 ./autotag
- autotag
# - composer global require humbug/box
# - php backupper app:build --build-version -n
# - php builds/backupper
- 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
image: lorisleiva/laravel-docker
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