From 5076a75b0760a8aa7d92fc3416dbb890f2f7a5e8 Mon Sep 17 00:00:00 2001 From: Mykyta Solomko Date: Sat, 15 May 2021 23:05:12 +0300 Subject: [PATCH 01/11] Remove bat => less alias --- .bash_aliases | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.bash_aliases b/.bash_aliases index 64f04b1..a0aae5b 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -16,9 +16,7 @@ alias '..'='cd ..' alias 'fucking'='sudo' alias 'weather'='curl http://wttr.in/Kyiv?lang=uk' 2> /dev/null alias 'KILL'='killall -s KILL' -if [[ ${PAGER} =~ .*/bat ]]; then - alias 'less'='bat' -fi + if [[ -n $(command -v kubectl) ]]; then alias 'kc'='kubectl' fi -- 2.17.6 From a888664306cb35ba5e0d389d3275806138af1a3c Mon Sep 17 00:00:00 2001 From: Mykyta Solomko Date: Sat, 15 May 2021 23:18:48 +0300 Subject: [PATCH 02/11] Mirror to GitHub --- .woodpecker.yml | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 5d9eda7..87ab34c 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -13,13 +13,34 @@ pipeline: - ".bashrc" - ".bash_profile" - ".bash_aliases" + event: + - push + branch: + exclude: + - master lint-yaml: image: sevoid/linter pull: true group: lint lint: yaml + event: + - push + branch: + exclude: + - master + + mirror-to-github: + image: appleboy/drone-git-push + settings: + ssh_key: + from_secret: github + branch: master + remote: git@github.com:Sevlin/dotfiles.git + force: true + event: + - push + branch: + - master -branches: - exlude: [ master ] # vim:set syntax=yaml ts=2 sw=2 et: -- 2.17.6 From 198c02106cdaa353fa3f56c65b71e1c2befef204 Mon Sep 17 00:00:00 2001 From: Mykyta Solomko Date: Sat, 15 May 2021 23:21:40 +0300 Subject: [PATCH 03/11] Fixed indentation --- .woodpecker.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 87ab34c..aea4c37 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -41,6 +41,6 @@ pipeline: event: - push branch: - - master + - master # vim:set syntax=yaml ts=2 sw=2 et: -- 2.17.6 From 889f861ae2698ce12c8203c3d109e7c4a3d955ac Mon Sep 17 00:00:00 2001 From: Mykyta Solomko Date: Sat, 15 May 2021 23:47:12 +0300 Subject: [PATCH 04/11] Added remote_name --- .woodpecker.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.woodpecker.yml b/.woodpecker.yml index aea4c37..3c8f43e 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -36,6 +36,7 @@ pipeline: ssh_key: from_secret: github branch: master + remote_name: origin remote: git@github.com:Sevlin/dotfiles.git force: true event: -- 2.17.6 From d1d14956bb0dc1dfebf8642e408b0973c45b8a70 Mon Sep 17 00:00:00 2001 From: Mykyta Solomko Date: Sat, 15 May 2021 23:52:53 +0300 Subject: [PATCH 05/11] Varable name? --- .woodpecker.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 3c8f43e..9a42ccd 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -33,7 +33,7 @@ pipeline: mirror-to-github: image: appleboy/drone-git-push settings: - ssh_key: + ssh-key: from_secret: github branch: master remote_name: origin -- 2.17.6 From bbc947d181efffde3045ed13a54f6475507e390b Mon Sep 17 00:00:00 2001 From: Mykyta Solomko Date: Sun, 16 May 2021 00:07:26 +0300 Subject: [PATCH 06/11] Commit? --- .woodpecker.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.woodpecker.yml b/.woodpecker.yml index 9a42ccd..99030b8 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -39,6 +39,7 @@ pipeline: remote_name: origin remote: git@github.com:Sevlin/dotfiles.git force: true + commit: true event: - push branch: -- 2.17.6 From 9d52507c38d7171ca22d5e903a324fbd8a659a64 Mon Sep 17 00:00:00 2001 From: Mykyta Solomko Date: Sun, 16 May 2021 00:12:51 +0300 Subject: [PATCH 07/11] Test --- .woodpecker.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 99030b8..93faaab 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -33,13 +33,11 @@ pipeline: mirror-to-github: image: appleboy/drone-git-push settings: - ssh-key: - from_secret: github - branch: master - remote_name: origin remote: git@github.com:Sevlin/dotfiles.git force: true - commit: true + environment: + GIT_PUSH_SSH_KEY: + from_secret: github event: - push branch: -- 2.17.6 From 4ec7379d8edefbb5648190319179e4daf51fcdef Mon Sep 17 00:00:00 2001 From: Mykyta Solomko Date: Sun, 16 May 2021 00:15:43 +0300 Subject: [PATCH 08/11] Fixed options --- .woodpecker.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 93faaab..469970f 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -32,12 +32,10 @@ pipeline: mirror-to-github: image: appleboy/drone-git-push - settings: - remote: git@github.com:Sevlin/dotfiles.git - force: true - environment: - GIT_PUSH_SSH_KEY: - from_secret: github + remote: git@github.com:Sevlin/dotfiles.git + force: true + ssh_key: + from_secret: github event: - push branch: -- 2.17.6 From b851f01adce36d9e07ce99474c18b982ce42ca2b Mon Sep 17 00:00:00 2001 From: Mykyta Solomko Date: Sun, 16 May 2021 00:22:45 +0300 Subject: [PATCH 09/11] Envvar --- .woodpecker.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 469970f..1e36fc2 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -34,8 +34,9 @@ pipeline: image: appleboy/drone-git-push remote: git@github.com:Sevlin/dotfiles.git force: true - ssh_key: - from_secret: github + environment: + GIT_PUSH_SSH_KEY: + from_secret: github event: - push branch: -- 2.17.6 From 7512d65edb5094074ca2f53cf79e3a08458defbf Mon Sep 17 00:00:00 2001 From: Mykyta Solomko Date: Sun, 16 May 2021 00:33:55 +0300 Subject: [PATCH 10/11] Fixed secrets --- .woodpecker.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 1e36fc2..a5bb5a9 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -34,9 +34,9 @@ pipeline: image: appleboy/drone-git-push remote: git@github.com:Sevlin/dotfiles.git force: true - environment: - GIT_PUSH_SSH_KEY: - from_secret: github + secrets: + - source: github + target: GIT_PUSH_SSH_KEY event: - push branch: -- 2.17.6 From 9a735d2e1c1396586e14426a10da876928b03980 Mon Sep 17 00:00:00 2001 From: Mykyta Solomko Date: Sun, 16 May 2021 01:21:45 +0300 Subject: [PATCH 11/11] Added pipeline triggers --- .woodpecker.yml | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index a5bb5a9..abf58c5 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -13,22 +13,24 @@ pipeline: - ".bashrc" - ".bash_profile" - ".bash_aliases" - event: - - push - branch: - exclude: - - master + when: + event: + - push + branch: + exclude: + - master lint-yaml: image: sevoid/linter pull: true group: lint lint: yaml - event: - - push - branch: - exclude: - - master + when: + event: + - push + branch: + exclude: + - master mirror-to-github: image: appleboy/drone-git-push @@ -37,9 +39,10 @@ pipeline: secrets: - source: github target: GIT_PUSH_SSH_KEY - event: - - push - branch: - - master + when: + event: + - push + branch: + - master # vim:set syntax=yaml ts=2 sw=2 et: -- 2.17.6