From a7a559f9e8ee2db05faa7a555be6c8d03c9bebe8 Mon Sep 17 00:00:00 2001 From: Muhep Atasoy Date: Sun, 15 Dec 2019 19:54:17 +0300 Subject: [PATCH 01/50] Update .drone.yml --- .drone.yml | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/.drone.yml b/.drone.yml index ac1dacd..c8b435c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -36,14 +36,9 @@ steps: - name: build image: lorisleiva/laravel-docker + environment: + VERSION: 1.0.1-pre 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 + - php backupper app:build --build-version=$VERSION -n + - php builds/backupper From 227b1f8e9ba8a706033c432e1c290f97198b6dd9 Mon Sep 17 00:00:00 2001 From: Muhep Atasoy Date: Sun, 15 Dec 2019 19:55:29 +0300 Subject: [PATCH 02/50] Update .drone.yml --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index c8b435c..9396abf 100644 --- a/.drone.yml +++ b/.drone.yml @@ -40,5 +40,5 @@ steps: VERSION: 1.0.1-pre commands: - composer global require humbug/box - - php backupper app:build --build-version=$VERSION -n + - php backupper app:build --build-version="$VERSION" -n - php builds/backupper From 21cd7d862b01acc2992dcb8fffe77ce1a72f1634 Mon Sep 17 00:00:00 2001 From: Muhep Atasoy Date: Sun, 15 Dec 2019 19:58:00 +0300 Subject: [PATCH 03/50] Update .drone.yml --- .drone.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 9396abf..8e71d78 100644 --- a/.drone.yml +++ b/.drone.yml @@ -39,6 +39,7 @@ steps: environment: VERSION: 1.0.1-pre commands: - - composer global require humbug/box - - php backupper app:build --build-version="$VERSION" -n + #- composer global require humbug/box + - echo $VERSION + - php backupper app:build --build-version=$VERSION -n - php builds/backupper From 9a2edd2797ddbc1a265b60032ad243ecee36c594 Mon Sep 17 00:00:00 2001 From: Muhep Atasoy Date: Sun, 15 Dec 2019 19:58:27 +0300 Subject: [PATCH 04/50] Update .drone.yml --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 8e71d78..bec4570 100644 --- a/.drone.yml +++ b/.drone.yml @@ -41,5 +41,5 @@ steps: commands: #- composer global require humbug/box - echo $VERSION - - php backupper app:build --build-version=$VERSION -n + - php backupper app:build --build-version={$VERSION} -n - php builds/backupper From b5d1d1783a5a57c26cda8a8fb9e3769874a3e95d Mon Sep 17 00:00:00 2001 From: Muhep Atasoy Date: Sun, 15 Dec 2019 19:58:44 +0300 Subject: [PATCH 05/50] Update .drone.yml --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index bec4570..ed4e30e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -41,5 +41,5 @@ steps: commands: #- composer global require humbug/box - echo $VERSION - - php backupper app:build --build-version={$VERSION} -n + - php backupper app:build --build-version=$$VERSION -n - php builds/backupper From f33bda8cd659b67c778a1e8ef613d1c89ce4e9d9 Mon Sep 17 00:00:00 2001 From: Muhep Atasoy Date: Sun, 15 Dec 2019 19:59:41 +0300 Subject: [PATCH 06/50] Update .drone.yml --- .drone.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index ed4e30e..0ed4158 100644 --- a/.drone.yml +++ b/.drone.yml @@ -40,6 +40,5 @@ steps: VERSION: 1.0.1-pre commands: #- composer global require humbug/box - - echo $VERSION - - php backupper app:build --build-version=$$VERSION -n + - echo $VERSION | php backupper app:build -n --build-version=- - php builds/backupper From f96c87c74edacaa4e6f3ee1436b2912b99e815db Mon Sep 17 00:00:00 2001 From: Muhep Atasoy Date: Sun, 15 Dec 2019 20:01:01 +0300 Subject: [PATCH 07/50] Update .drone.yml --- .drone.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 0ed4158..b5578ac 100644 --- a/.drone.yml +++ b/.drone.yml @@ -40,5 +40,6 @@ steps: VERSION: 1.0.1-pre commands: #- composer global require humbug/box - - echo $VERSION | php backupper app:build -n --build-version=- + - echo $VERSION + - php backupper app:build --build-version=$${VERSION} -n - php builds/backupper From f59e4feb30f131e4909fcd9e5b0ba6e3c0219d82 Mon Sep 17 00:00:00 2001 From: Muhep Atasoy Date: Sun, 15 Dec 2019 20:03:29 +0300 Subject: [PATCH 08/50] Update .drone.yml --- .drone.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index b5578ac..82e29a9 100644 --- a/.drone.yml +++ b/.drone.yml @@ -40,6 +40,6 @@ steps: VERSION: 1.0.1-pre commands: #- composer global require humbug/box - - echo $VERSION - - php backupper app:build --build-version=$${VERSION} -n + - VERSION=$VERSION + - php backupper app:build --build-version=${VERSION} -n - php builds/backupper From 8e87524db23d39de47dd605038f9997c3d690f8f Mon Sep 17 00:00:00 2001 From: Muhep Atasoy Date: Sun, 15 Dec 2019 20:06:52 +0300 Subject: [PATCH 09/50] Update .drone.yml --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 82e29a9..a2fcefd 100644 --- a/.drone.yml +++ b/.drone.yml @@ -40,6 +40,6 @@ steps: VERSION: 1.0.1-pre commands: #- composer global require humbug/box - - VERSION=$VERSION + - export VERSION=$VERSION - php backupper app:build --build-version=${VERSION} -n - php builds/backupper From cbe497501d00ec04e5483a9a0b9ebba6152dd1e5 Mon Sep 17 00:00:00 2001 From: Muhep Atasoy Date: Sun, 15 Dec 2019 20:07:21 +0300 Subject: [PATCH 10/50] Update .drone.yml --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index a2fcefd..f1de61d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -41,5 +41,5 @@ steps: commands: #- composer global require humbug/box - export VERSION=$VERSION - - php backupper app:build --build-version=${VERSION} -n + - php backupper app:build --build-version=$VERSION -n - php builds/backupper From 66927dde1dae8021cf1f7061986bd3963bba3e92 Mon Sep 17 00:00:00 2001 From: Muhep Atasoy Date: Sun, 15 Dec 2019 20:08:41 +0300 Subject: [PATCH 11/50] Update .drone.yml --- .drone.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index f1de61d..62cf300 100644 --- a/.drone.yml +++ b/.drone.yml @@ -40,6 +40,5 @@ steps: VERSION: 1.0.1-pre commands: #- composer global require humbug/box - - export VERSION=$VERSION - php backupper app:build --build-version=$VERSION -n - php builds/backupper From e930e969ef345f82e9a9169d334232c106bd2a26 Mon Sep 17 00:00:00 2001 From: Muhep Atasoy Date: Sun, 15 Dec 2019 20:12:12 +0300 Subject: [PATCH 12/50] Update .drone.yml --- .drone.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 62cf300..d96f50d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -37,8 +37,8 @@ steps: - name: build image: lorisleiva/laravel-docker environment: - VERSION: 1.0.1-pre + VERDIM: 1.0.1-pre commands: #- composer global require humbug/box - - php backupper app:build --build-version=$VERSION -n + - php backupper app:build --build-version=$VERDIM -n - php builds/backupper From cbe031b52a6421ada30c82bcae5457b772d53fe2 Mon Sep 17 00:00:00 2001 From: Muhep Atasoy Date: Sun, 15 Dec 2019 20:12:30 +0300 Subject: [PATCH 13/50] Update .drone.yml --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index d96f50d..cca7507 100644 --- a/.drone.yml +++ b/.drone.yml @@ -40,5 +40,5 @@ steps: VERDIM: 1.0.1-pre commands: #- composer global require humbug/box - - php backupper app:build --build-version=$VERDIM -n + - php backupper app:build --build-version= $VERDIM -n - php builds/backupper From 79a435529e2382c3b91d947678b8166df8db3e07 Mon Sep 17 00:00:00 2001 From: Muhep Atasoy Date: Sun, 15 Dec 2019 20:12:49 +0300 Subject: [PATCH 14/50] Update .drone.yml --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index cca7507..9149098 100644 --- a/.drone.yml +++ b/.drone.yml @@ -40,5 +40,5 @@ steps: VERDIM: 1.0.1-pre commands: #- composer global require humbug/box - - php backupper app:build --build-version= $VERDIM -n + - php backupper app:build --build-version= "$VERDIM" -n - php builds/backupper From bbf58f972026dd8d43b747752292f2667f88710a Mon Sep 17 00:00:00 2001 From: Muhep Atasoy Date: Sun, 15 Dec 2019 20:13:07 +0300 Subject: [PATCH 15/50] Update .drone.yml --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 9149098..a6c4d43 100644 --- a/.drone.yml +++ b/.drone.yml @@ -37,7 +37,7 @@ steps: - name: build image: lorisleiva/laravel-docker environment: - VERDIM: 1.0.1-pre + VERDIM: "1.0.1-pre" commands: #- composer global require humbug/box - php backupper app:build --build-version= "$VERDIM" -n From 8175b0cc20f3b13c54111c6d33153a7d7006ada8 Mon Sep 17 00:00:00 2001 From: Muhep Atasoy Date: Sun, 15 Dec 2019 20:13:45 +0300 Subject: [PATCH 16/50] Update .drone.yml --- .drone.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index a6c4d43..aaaef88 100644 --- a/.drone.yml +++ b/.drone.yml @@ -37,8 +37,8 @@ steps: - name: build image: lorisleiva/laravel-docker environment: - VERDIM: "1.0.1-pre" + BUILD_VERSION: "1.0.1-pre" commands: #- composer global require humbug/box - - php backupper app:build --build-version= "$VERDIM" -n + - php backupper app:build $BUILD_VERSION -n - php builds/backupper From 816d062675a5f607c5d72a99ce1251c247848d72 Mon Sep 17 00:00:00 2001 From: Muhep Atasoy Date: Sun, 15 Dec 2019 20:14:09 +0300 Subject: [PATCH 17/50] Update .drone.yml --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index aaaef88..1ab4efd 100644 --- a/.drone.yml +++ b/.drone.yml @@ -40,5 +40,5 @@ steps: BUILD_VERSION: "1.0.1-pre" commands: #- composer global require humbug/box - - php backupper app:build $BUILD_VERSION -n + - echo $BUILD_VERSION - php builds/backupper From 92e85f1f649f3175f3b7a4925f7c4277e45dfe37 Mon Sep 17 00:00:00 2001 From: Muhep Atasoy Date: Sun, 15 Dec 2019 20:15:15 +0300 Subject: [PATCH 18/50] Update .drone.yml --- .drone.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 1ab4efd..2bee837 100644 --- a/.drone.yml +++ b/.drone.yml @@ -40,5 +40,6 @@ steps: BUILD_VERSION: "1.0.1-pre" commands: #- composer global require humbug/box - - echo $BUILD_VERSION + - echo php backupper app:build $BUILD_VERSION -n >> build.sh + - cat build.sh - php builds/backupper From 62b51b4318c54c25c9c6cd7b27ad987d895b869b Mon Sep 17 00:00:00 2001 From: Muhep Atasoy Date: Sun, 15 Dec 2019 20:16:32 +0300 Subject: [PATCH 19/50] Update .drone.yml --- .drone.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.drone.yml b/.drone.yml index 2bee837..c56e141 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,11 +3,11 @@ name: default type: docker steps: -# - name: composer -# pull: if-not-exists -# image: composer -# commands: -# - composer install --prefer-dist + - name: composer + pull: if-not-exists + image: composer + commands: + - composer install --prefer-dist # # - name: test # image: lorisleiva/laravel-docker @@ -39,7 +39,8 @@ steps: environment: BUILD_VERSION: "1.0.1-pre" commands: - #- composer global require humbug/box - - echo php backupper app:build $BUILD_VERSION -n >> build.sh - - cat build.sh + - composer global require humbug/box + - echo php backupper app:build --build-version=$BUILD_VERSION -n >> build.sh + - chmod +x .build.sh + - ./build.sh - php builds/backupper From 37d73181e3ba6fd6f5fc4ea9bd5afed67f71f0e4 Mon Sep 17 00:00:00 2001 From: Muhep Atasoy Date: Sun, 15 Dec 2019 20:17:43 +0300 Subject: [PATCH 20/50] Update .drone.yml --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index c56e141..284128c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -41,6 +41,6 @@ steps: commands: - composer global require humbug/box - echo php backupper app:build --build-version=$BUILD_VERSION -n >> build.sh - - chmod +x .build.sh + - chmod +x ./build.sh - ./build.sh - php builds/backupper From 8ab1f60bc3728cbdf9edefd4544175583ebdf5d9 Mon Sep 17 00:00:00 2001 From: Muhep Atasoy Date: Sun, 15 Dec 2019 20:24:55 +0300 Subject: [PATCH 21/50] Update .drone.yml --- .drone.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.drone.yml b/.drone.yml index 284128c..417552d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -44,3 +44,14 @@ steps: - chmod +x ./build.sh - ./build.sh - php builds/backupper + + - name: publish + image: plugins/github-release + environment: + BUILD_VERSION: "1.0.1-pre" + settings: + api_key: + from_secret: api_key + files: + - builds/* + title: $BUILD_VERSION From bcf3320dbf9b2f47b153795c8f5449267e91f809 Mon Sep 17 00:00:00 2001 From: Muhep Atasoy Date: Sun, 15 Dec 2019 20:29:02 +0300 Subject: [PATCH 22/50] Update .drone.yml --- .drone.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.drone.yml b/.drone.yml index 417552d..1958123 100644 --- a/.drone.yml +++ b/.drone.yml @@ -55,3 +55,5 @@ steps: files: - builds/* title: $BUILD_VERSION + when: + event: tag From 77ac0318534648da57552a761a3933bde056fd6f Mon Sep 17 00:00:00 2001 From: Muhep Atasoy Date: Sun, 15 Dec 2019 20:44:33 +0300 Subject: [PATCH 23/50] Update .drone.yml --- .drone.yml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.drone.yml b/.drone.yml index 1958123..6db0687 100644 --- a/.drone.yml +++ b/.drone.yml @@ -36,24 +36,18 @@ steps: - name: build image: lorisleiva/laravel-docker - environment: - BUILD_VERSION: "1.0.1-pre" commands: - composer global require humbug/box - - echo php backupper app:build --build-version=$BUILD_VERSION -n >> build.sh - - chmod +x ./build.sh - - ./build.sh + - php backupper app:build --build-version=$(git describe --abbrev=0 --tags) -n - php builds/backupper - name: publish image: plugins/github-release - environment: - BUILD_VERSION: "1.0.1-pre" settings: api_key: from_secret: api_key files: - builds/* - title: $BUILD_VERSION + prerelease: true when: event: tag From feb7c017ae96dc459eb04af5e45bebce04e2d784 Mon Sep 17 00:00:00 2001 From: Muhep Atasoy Date: Sun, 15 Dec 2019 20:46:17 +0300 Subject: [PATCH 24/50] Update .drone.yml --- .drone.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.drone.yml b/.drone.yml index 6db0687..6037a2c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -40,6 +40,8 @@ steps: - composer global require humbug/box - php backupper app:build --build-version=$(git describe --abbrev=0 --tags) -n - php builds/backupper + when: + event: tag - name: publish image: plugins/github-release From 64cd39df5da6fe0029c6640955c2d9adca0392d6 Mon Sep 17 00:00:00 2001 From: Muhep Atasoy Date: Sun, 15 Dec 2019 20:46:53 +0300 Subject: [PATCH 25/50] Update .drone.yml --- .drone.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.drone.yml b/.drone.yml index 6037a2c..b2bb686 100644 --- a/.drone.yml +++ b/.drone.yml @@ -38,6 +38,7 @@ steps: image: lorisleiva/laravel-docker commands: - composer global require humbug/box + - composer install - php backupper app:build --build-version=$(git describe --abbrev=0 --tags) -n - php builds/backupper when: From 1c8c341e717b9fad0000e43c1ff3717c02cc4de2 Mon Sep 17 00:00:00 2001 From: Muhep Atasoy Date: Sun, 15 Dec 2019 20:58:21 +0300 Subject: [PATCH 26/50] Update .drone.yml --- .drone.yml | 40 +++++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/.drone.yml b/.drone.yml index b2bb686..ee9f42f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,11 +3,11 @@ name: default type: docker steps: - - name: composer - pull: if-not-exists - image: composer - commands: - - composer install --prefer-dist +# - name: composer +# pull: if-not-exists +# image: composer +# commands: +# - composer install --prefer-dist # # - name: test # image: lorisleiva/laravel-docker @@ -37,20 +37,22 @@ steps: - name: build image: lorisleiva/laravel-docker commands: - - composer global require humbug/box - - composer install +# - composer global require humbug/box +# - composer install + - echo $(git describe --abbrev=0 --tags) > d + - cat d - php backupper app:build --build-version=$(git describe --abbrev=0 --tags) -n - php builds/backupper - when: - event: tag +# when: +# event: tag - - name: publish - image: plugins/github-release - settings: - api_key: - from_secret: api_key - files: - - builds/* - prerelease: true - when: - event: tag +# - name: publish +# image: plugins/github-release +# settings: +# api_key: +# from_secret: api_key +# files: +# - builds/* +# prerelease: true +# when: +# event: tag From 1957dda0b61ae926a9c632a285dee8d515a1c419 Mon Sep 17 00:00:00 2001 From: Muhep Atasoy Date: Sun, 15 Dec 2019 20:59:07 +0300 Subject: [PATCH 27/50] Update .drone.yml --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index ee9f42f..46e202d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -39,7 +39,7 @@ steps: commands: # - composer global require humbug/box # - composer install - - echo $(git describe --abbrev=0 --tags) > d + - echo "$(git describe --abbrev=0 --tags)" > d - cat d - php backupper app:build --build-version=$(git describe --abbrev=0 --tags) -n - php builds/backupper From b3edd77eff000f97944197b778399ea9e48f0a4b Mon Sep 17 00:00:00 2001 From: Muhep Atasoy Date: Sun, 15 Dec 2019 20:59:37 +0300 Subject: [PATCH 28/50] Update .drone.yml --- .drone.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.drone.yml b/.drone.yml index 46e202d..90a6175 100644 --- a/.drone.yml +++ b/.drone.yml @@ -39,6 +39,7 @@ steps: commands: # - composer global require humbug/box # - composer install + - git describe --abbrev=0 --tags - echo "$(git describe --abbrev=0 --tags)" > d - cat d - php backupper app:build --build-version=$(git describe --abbrev=0 --tags) -n From 2a7ec0e938cb807fa86eb7fec551d121f750ead7 Mon Sep 17 00:00:00 2001 From: Muhep Atasoy Date: Sun, 15 Dec 2019 21:00:10 +0300 Subject: [PATCH 29/50] Update .drone.yml --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 90a6175..c2aaf18 100644 --- a/.drone.yml +++ b/.drone.yml @@ -39,7 +39,7 @@ steps: commands: # - composer global require humbug/box # - composer install - - git describe --abbrev=0 --tags + - git tag - echo "$(git describe --abbrev=0 --tags)" > d - cat d - php backupper app:build --build-version=$(git describe --abbrev=0 --tags) -n From 3ddaf5c913709f97b1f5c3b67fbee46b4dfe0342 Mon Sep 17 00:00:00 2001 From: Muhep Atasoy Date: Sun, 15 Dec 2019 21:02:12 +0300 Subject: [PATCH 30/50] Update .drone.yml --- .drone.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.drone.yml b/.drone.yml index c2aaf18..216b6c0 100644 --- a/.drone.yml +++ b/.drone.yml @@ -2,6 +2,9 @@ kind: pipeline name: default type: docker +clone: + tags: true + steps: # - name: composer # pull: if-not-exists From 737c31f0c5405740b7c196d524ffa75098c92802 Mon Sep 17 00:00:00 2001 From: Muhep Atasoy Date: Sun, 15 Dec 2019 21:06:03 +0300 Subject: [PATCH 31/50] Update .drone.yml --- .drone.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.drone.yml b/.drone.yml index 216b6c0..7d32f3d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -42,6 +42,7 @@ steps: commands: # - composer global require humbug/box # - composer install + - git pull origin master - git tag - echo "$(git describe --abbrev=0 --tags)" > d - cat d From dd5021230fa6256c2e3bbcfea89bdf4f47c7c122 Mon Sep 17 00:00:00 2001 From: Muhep Atasoy Date: Sun, 15 Dec 2019 21:06:37 +0300 Subject: [PATCH 32/50] Update .drone.yml --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 7d32f3d..0112957 100644 --- a/.drone.yml +++ b/.drone.yml @@ -42,7 +42,7 @@ steps: commands: # - composer global require humbug/box # - composer install - - git pull origin master + - git pull origin master --tags - git tag - echo "$(git describe --abbrev=0 --tags)" > d - cat d From 98393d73be36b88734c72ec8f50f1736b9b6f166 Mon Sep 17 00:00:00 2001 From: Muhep Atasoy Date: Sun, 15 Dec 2019 21:07:46 +0300 Subject: [PATCH 33/50] Update .drone.yml --- .drone.yml | 41 +++++++++++++++++++---------------------- 1 file changed, 19 insertions(+), 22 deletions(-) diff --git a/.drone.yml b/.drone.yml index 0112957..7d51fec 100644 --- a/.drone.yml +++ b/.drone.yml @@ -6,11 +6,11 @@ clone: tags: true steps: -# - name: composer -# pull: if-not-exists -# image: composer -# commands: -# - composer install --prefer-dist + - name: composer + pull: if-not-exists + image: composer + commands: + - composer install --prefer-dist # # - name: test # image: lorisleiva/laravel-docker @@ -40,24 +40,21 @@ steps: - name: build image: lorisleiva/laravel-docker commands: -# - composer global require humbug/box -# - composer install + - composer global require humbug/box + - composer install - git pull origin master --tags - - git tag - - echo "$(git describe --abbrev=0 --tags)" > d - - cat d - php backupper app:build --build-version=$(git describe --abbrev=0 --tags) -n - php builds/backupper -# when: -# event: tag + when: + event: tag -# - name: publish -# image: plugins/github-release -# settings: -# api_key: -# from_secret: api_key -# files: -# - builds/* -# prerelease: true -# when: -# event: tag + - name: publish + image: plugins/github-release + settings: + api_key: + from_secret: api_key + files: + - builds/* + prerelease: true + when: + event: tag From d08f60c71a78a9909a9aeba91230f629505056ca Mon Sep 17 00:00:00 2001 From: Muhep Atasoy Date: Sun, 15 Dec 2019 21:12:47 +0300 Subject: [PATCH 34/50] Update .drone.yml --- .drone.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.drone.yml b/.drone.yml index 7d51fec..127c795 100644 --- a/.drone.yml +++ b/.drone.yml @@ -56,5 +56,6 @@ steps: files: - builds/* prerelease: true + upload_url: https://api.github.com/repos/muhep06/dgd-backupper-php/releases when: event: tag From 60dd7fa45b463502e9ff455ce58a1c8bb247caf2 Mon Sep 17 00:00:00 2001 From: Muhep Atasoy Date: Sun, 15 Dec 2019 21:13:03 +0300 Subject: [PATCH 35/50] Update .drone.yml --- .drone.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 127c795..16e312e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -41,7 +41,6 @@ steps: image: lorisleiva/laravel-docker commands: - composer global require humbug/box - - composer install - git pull origin master --tags - php backupper app:build --build-version=$(git describe --abbrev=0 --tags) -n - php builds/backupper From 67798dac3016881f418e07b58f18dc4b3f714592 Mon Sep 17 00:00:00 2001 From: Muhep Atasoy Date: Sun, 15 Dec 2019 21:20:41 +0300 Subject: [PATCH 36/50] Update .drone.yml --- .drone.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.drone.yml b/.drone.yml index 16e312e..7e2ce50 100644 --- a/.drone.yml +++ b/.drone.yml @@ -56,5 +56,6 @@ steps: - builds/* prerelease: true upload_url: https://api.github.com/repos/muhep06/dgd-backupper-php/releases + base_url: https://api.github.com/repos/muhep06/dgd-backupper-php/releases when: event: tag From 0b5337d6f17cd71e3e259aacf52f3581ea3754b6 Mon Sep 17 00:00:00 2001 From: Muhep Atasoy Date: Sun, 15 Dec 2019 21:25:05 +0300 Subject: [PATCH 37/50] Update .drone.yml --- .drone.yml | 80 ++++++++++++++++++++++++++---------------------------- 1 file changed, 39 insertions(+), 41 deletions(-) diff --git a/.drone.yml b/.drone.yml index 7e2ce50..f15675a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -6,46 +6,46 @@ clone: tags: true steps: - - name: composer - pull: if-not-exists - image: composer - commands: - - composer install --prefer-dist +# - 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: test +# - name: build # 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 - 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 +# - 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: plugins/github-release @@ -55,7 +55,5 @@ steps: files: - builds/* prerelease: true - upload_url: https://api.github.com/repos/muhep06/dgd-backupper-php/releases - base_url: https://api.github.com/repos/muhep06/dgd-backupper-php/releases - when: - event: tag + upload_url: /repos/muhep06/dgd-backupper-php/releases + base_url: https://api.github.com From 0b90045f529b9c561cd161487e99a8fad09148d4 Mon Sep 17 00:00:00 2001 From: Muhep Atasoy Date: Sun, 15 Dec 2019 23:37:03 +0300 Subject: [PATCH 38/50] Update .drone.yml --- .drone.yml | 64 +++++++++++++++++++++++++----------------------------- 1 file changed, 30 insertions(+), 34 deletions(-) diff --git a/.drone.yml b/.drone.yml index f15675a..2bd7f13 100644 --- a/.drone.yml +++ b/.drone.yml @@ -11,32 +11,32 @@ steps: # 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: 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 # image: lorisleiva/laravel-docker # commands: @@ -48,12 +48,8 @@ steps: # event: tag - name: publish - image: plugins/github-release - settings: - api_key: - from_secret: api_key - files: - - builds/* - prerelease: true - upload_url: /repos/muhep06/dgd-backupper-php/releases - base_url: https://api.github.com + image: lorisleiva/laravel-docker + commands: + - wget https://github.com/tfausak/github-release/releases/download/1.2.5/github-release-linux.gz + - gzip -d github-release-linux.gz + - ls -all From 56cfb0853d211f52468f57bb5a18963a0649925f Mon Sep 17 00:00:00 2001 From: Muhep Atasoy Date: Sun, 15 Dec 2019 23:39:33 +0300 Subject: [PATCH 39/50] Update .drone.yml --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 2bd7f13..fc5c8de 100644 --- a/.drone.yml +++ b/.drone.yml @@ -52,4 +52,4 @@ steps: commands: - wget https://github.com/tfausak/github-release/releases/download/1.2.5/github-release-linux.gz - gzip -d github-release-linux.gz - - ls -all + - cd github-release-linux && ls -all From 9383b0fa4c9f5d75c14384471e8ea4d654262434 Mon Sep 17 00:00:00 2001 From: Muhep Atasoy Date: Sun, 15 Dec 2019 23:40:33 +0300 Subject: [PATCH 40/50] Update .drone.yml --- .drone.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index fc5c8de..8485b07 100644 --- a/.drone.yml +++ b/.drone.yml @@ -52,4 +52,5 @@ steps: commands: - wget https://github.com/tfausak/github-release/releases/download/1.2.5/github-release-linux.gz - gzip -d github-release-linux.gz - - cd github-release-linux && ls -all + - chmod +x github-release-linux + - ./github-release-linux From b1cc51576b1dc60c4627631c36486dff9658e3f1 Mon Sep 17 00:00:00 2001 From: Muhep Atasoy Date: Sun, 15 Dec 2019 23:41:29 +0300 Subject: [PATCH 41/50] Update .drone.yml --- .drone.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.drone.yml b/.drone.yml index 8485b07..dcb58d7 100644 --- a/.drone.yml +++ b/.drone.yml @@ -53,4 +53,5 @@ steps: - wget https://github.com/tfausak/github-release/releases/download/1.2.5/github-release-linux.gz - gzip -d github-release-linux.gz - chmod +x github-release-linux + - ls -l - ./github-release-linux From bee4661aa8e1107dfcaceefe936e9388dbf16b86 Mon Sep 17 00:00:00 2001 From: Muhep Atasoy Date: Sun, 15 Dec 2019 23:42:36 +0300 Subject: [PATCH 42/50] Update .drone.yml --- .drone.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index dcb58d7..694acc7 100644 --- a/.drone.yml +++ b/.drone.yml @@ -51,7 +51,5 @@ steps: image: lorisleiva/laravel-docker commands: - wget https://github.com/tfausak/github-release/releases/download/1.2.5/github-release-linux.gz - - gzip -d github-release-linux.gz - - chmod +x github-release-linux - ls -l - ./github-release-linux From 0c8bfef8154219ee71e6889886cbc3e17c8a25d2 Mon Sep 17 00:00:00 2001 From: Muhep Atasoy Date: Sun, 15 Dec 2019 23:43:00 +0300 Subject: [PATCH 43/50] Update .drone.yml --- .drone.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.drone.yml b/.drone.yml index 694acc7..cd772ae 100644 --- a/.drone.yml +++ b/.drone.yml @@ -51,5 +51,6 @@ steps: image: lorisleiva/laravel-docker commands: - wget https://github.com/tfausak/github-release/releases/download/1.2.5/github-release-linux.gz + - gunzip github-release-linux.gz - ls -l - ./github-release-linux From 817a9388d72217a66e776bab0e985594252630ed Mon Sep 17 00:00:00 2001 From: Muhep Atasoy Date: Sun, 15 Dec 2019 23:43:33 +0300 Subject: [PATCH 44/50] Update .drone.yml --- .drone.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.drone.yml b/.drone.yml index cd772ae..2781a15 100644 --- a/.drone.yml +++ b/.drone.yml @@ -52,5 +52,6 @@ steps: commands: - wget https://github.com/tfausak/github-release/releases/download/1.2.5/github-release-linux.gz - gunzip github-release-linux.gz + - chmod +x ./github-release-linux - ls -l - ./github-release-linux From fe2cc8769dd16b163028132121e4f19ce9f92b38 Mon Sep 17 00:00:00 2001 From: Muhep Atasoy Date: Sun, 15 Dec 2019 23:46:16 +0300 Subject: [PATCH 45/50] Update .drone.yml --- .drone.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index 2781a15..8a08f47 100644 --- a/.drone.yml +++ b/.drone.yml @@ -50,8 +50,7 @@ steps: - name: publish image: lorisleiva/laravel-docker commands: - - wget https://github.com/tfausak/github-release/releases/download/1.2.5/github-release-linux.gz - - gunzip github-release-linux.gz - - chmod +x ./github-release-linux + - 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 - ls -l - - ./github-release-linux + - cd bin From 2cce66600b11fb5b5b1ca0319026a2bc4a5c6ece Mon Sep 17 00:00:00 2001 From: Muhep Atasoy Date: Sun, 15 Dec 2019 23:47:58 +0300 Subject: [PATCH 46/50] Update .drone.yml --- .drone.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 8a08f47..6775cc4 100644 --- a/.drone.yml +++ b/.drone.yml @@ -53,4 +53,5 @@ steps: - 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 - ls -l - - cd bin + - chmod +x ./bin/linux/amd64/github-release + - ./bin/linux/amd64/github-release From 9d394b5ff9e26cdf66a91bda9dbbb61f6b93e4f7 Mon Sep 17 00:00:00 2001 From: Muhep Atasoy Date: Sun, 15 Dec 2019 23:52:59 +0300 Subject: [PATCH 47/50] Update .drone.yml --- .drone.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 6775cc4..a8c914f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -49,9 +49,14 @@ steps: - name: publish image: lorisleiva/laravel-docker + environment: + GITHUB_TOKEN: + from_secret: api_key commands: - 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 - ls -l - chmod +x ./bin/linux/amd64/github-release - - ./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 From b4c098d0c183a2e9ea19dabc58651f2c6da85cfc Mon Sep 17 00:00:00 2001 From: Muhep Atasoy Date: Sun, 15 Dec 2019 23:53:48 +0300 Subject: [PATCH 48/50] Update .drone.yml --- .drone.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index a8c914f..624973f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -53,10 +53,11 @@ steps: 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 - ls -l - 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 + - ./github-release upload --user muhep06 --repo dgd-backupper-php --tag $(git describe --abbrev=0 --tags) --name "backupper" --file ./builds/backupper From eca1e10ee2b799259f4066aa8f48f4122d5d185f Mon Sep 17 00:00:00 2001 From: Muhep Atasoy Date: Mon, 16 Dec 2019 00:01:29 +0300 Subject: [PATCH 49/50] Update .drone.yml --- .drone.yml | 80 ++++++++++++++++++++++++++++-------------------------- 1 file changed, 41 insertions(+), 39 deletions(-) diff --git a/.drone.yml b/.drone.yml index 624973f..0ca7b7f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -6,46 +6,46 @@ 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: 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: 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: + - 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 @@ -61,3 +61,5 @@ steps: - 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 From 9ea7ba4bf257cb50a60f1964465f8ce4f97ff4c8 Mon Sep 17 00:00:00 2001 From: Muhep Atasoy Date: Mon, 16 Dec 2019 00:09:51 +0300 Subject: [PATCH 50/50] Update .drone.yml --- .drone.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 0ca7b7f..32b0491 100644 --- a/.drone.yml +++ b/.drone.yml @@ -56,7 +56,6 @@ steps: - 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 - - ls -l - 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)"