From 06cd0173d40858bb7f92d1267c44be1f23944b87 Mon Sep 17 00:00:00 2001 From: scrummer Date: Wed, 13 Nov 2019 21:56:18 +0100 Subject: [PATCH 01/16] Testing GH actions --- .github/workflows/github-ci.yml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .github/workflows/github-ci.yml diff --git a/.github/workflows/github-ci.yml b/.github/workflows/github-ci.yml new file mode 100644 index 0000000..83f4ed4 --- /dev/null +++ b/.github/workflows/github-ci.yml @@ -0,0 +1,9 @@ +name: CI + +on: [push] + +jobs: + runs-on: stretch-latest + steps: + - name: Test step + run: echo 'Testing GH Actions' From 4327ab5d7d53e3bddda0e12344e20c24266e6441 Mon Sep 17 00:00:00 2001 From: scrummer Date: Wed, 13 Nov 2019 21:57:52 +0100 Subject: [PATCH 02/16] Testing GH actions --- .github/workflows/github-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/github-ci.yml b/.github/workflows/github-ci.yml index 83f4ed4..d41660a 100644 --- a/.github/workflows/github-ci.yml +++ b/.github/workflows/github-ci.yml @@ -3,7 +3,7 @@ name: CI on: [push] jobs: - runs-on: stretch-latest + runs-on: debian-stretch steps: - name: Test step run: echo 'Testing GH Actions' From 6687e25575e15268293f1c9b4a9429bbef0e398c Mon Sep 17 00:00:00 2001 From: scrummer Date: Wed, 13 Nov 2019 21:58:59 +0100 Subject: [PATCH 03/16] Testing GH actions --- .github/workflows/github-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/github-ci.yml b/.github/workflows/github-ci.yml index d41660a..fb596ef 100644 --- a/.github/workflows/github-ci.yml +++ b/.github/workflows/github-ci.yml @@ -3,7 +3,7 @@ name: CI on: [push] jobs: - runs-on: debian-stretch + runs-on: debian-latest steps: - name: Test step run: echo 'Testing GH Actions' From 818b523eecfa396851fb2d1e2fc3787aa0724087 Mon Sep 17 00:00:00 2001 From: scrummer Date: Wed, 13 Nov 2019 21:59:30 +0100 Subject: [PATCH 04/16] Testing GH actions --- .github/workflows/github-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/github-ci.yml b/.github/workflows/github-ci.yml index fb596ef..2ffda5d 100644 --- a/.github/workflows/github-ci.yml +++ b/.github/workflows/github-ci.yml @@ -3,7 +3,7 @@ name: CI on: [push] jobs: - runs-on: debian-latest + runs-on: ubuntu-latest steps: - name: Test step run: echo 'Testing GH Actions' From b4c6046199ea8e39e141534fe01c27a850525887 Mon Sep 17 00:00:00 2001 From: scrummer Date: Wed, 13 Nov 2019 22:00:49 +0100 Subject: [PATCH 05/16] Testing GH actions --- .github/workflows/github-ci.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/github-ci.yml b/.github/workflows/github-ci.yml index 2ffda5d..fd05015 100644 --- a/.github/workflows/github-ci.yml +++ b/.github/workflows/github-ci.yml @@ -3,7 +3,8 @@ name: CI on: [push] jobs: - runs-on: ubuntu-latest - steps: - - name: Test step - run: echo 'Testing GH Actions' + build: + runs-on: debian-stretch + steps: + - name: Test step + run: echo 'Testing GH Actions' From 94cf7ff981846343a0dda77ae2306b082e168389 Mon Sep 17 00:00:00 2001 From: scrummer Date: Sat, 23 Nov 2019 15:34:17 +0100 Subject: [PATCH 06/16] Testing GH actions --- .github/workflows/github-ci.yml | 16 +++++++++++++--- .travis.yml | 1 - 2 files changed, 13 insertions(+), 4 deletions(-) delete mode 100644 .travis.yml diff --git a/.github/workflows/github-ci.yml b/.github/workflows/github-ci.yml index fd05015..aee01ae 100644 --- a/.github/workflows/github-ci.yml +++ b/.github/workflows/github-ci.yml @@ -1,10 +1,20 @@ -name: CI +name: Build addons -on: [push] +on: + push: + branches: + - master + - scrummer-gh-actions # todo @scrummer: remove this later jobs: build: - runs-on: debian-stretch + runs-on: ubuntu-latest +# if: github.event_name == 'push' steps: + shell: bash + + - name: Install necessary packages + run: apt-get update -q && apt-get -y install sudo git vim curl openssh-client openssh-server && apt-get autoclean && rm -rf /var/lib/apt/lists/* + - name: Test step run: echo 'Testing GH Actions' diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 8b13789..0000000 --- a/.travis.yml +++ /dev/null @@ -1 +0,0 @@ - From eee6c44d0d6ff0c1fc09fa8537bf34a47d3cea3e Mon Sep 17 00:00:00 2001 From: scrummer Date: Sat, 23 Nov 2019 15:36:30 +0100 Subject: [PATCH 07/16] Testing GH actions --- .github/workflows/github-ci.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/github-ci.yml b/.github/workflows/github-ci.yml index aee01ae..8242903 100644 --- a/.github/workflows/github-ci.yml +++ b/.github/workflows/github-ci.yml @@ -11,8 +11,6 @@ jobs: runs-on: ubuntu-latest # if: github.event_name == 'push' steps: - shell: bash - - name: Install necessary packages run: apt-get update -q && apt-get -y install sudo git vim curl openssh-client openssh-server && apt-get autoclean && rm -rf /var/lib/apt/lists/* From fc2d861eb386da967deb284bf298f82206a71d50 Mon Sep 17 00:00:00 2001 From: scrummer Date: Sat, 23 Nov 2019 15:38:01 +0100 Subject: [PATCH 08/16] Testing GH actions --- .github/workflows/github-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/github-ci.yml b/.github/workflows/github-ci.yml index 8242903..237c6e7 100644 --- a/.github/workflows/github-ci.yml +++ b/.github/workflows/github-ci.yml @@ -12,7 +12,7 @@ jobs: # if: github.event_name == 'push' steps: - name: Install necessary packages - run: apt-get update -q && apt-get -y install sudo git vim curl openssh-client openssh-server && apt-get autoclean && rm -rf /var/lib/apt/lists/* + run: sudo apt-get update -q && sudo apt-get -y install git vim curl openssh-client openssh-server && sudo apt-get autoclean && sudo rm -rf /var/lib/apt/lists/* - name: Test step run: echo 'Testing GH Actions' From bad9551eec2a7d4ef1549dba9d00f4298ad705a4 Mon Sep 17 00:00:00 2001 From: scrummer Date: Sat, 23 Nov 2019 15:50:07 +0100 Subject: [PATCH 09/16] Testing GH actions --- .github/workflows/github-ci.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/github-ci.yml b/.github/workflows/github-ci.yml index 237c6e7..9b45390 100644 --- a/.github/workflows/github-ci.yml +++ b/.github/workflows/github-ci.yml @@ -14,5 +14,13 @@ jobs: - name: Install necessary packages run: sudo apt-get update -q && sudo apt-get -y install git vim curl openssh-client openssh-server && sudo apt-get autoclean && sudo rm -rf /var/lib/apt/lists/* - - name: Test step - run: echo 'Testing GH Actions' + - name: Prepare SSH client + run: | + mkdir -p ~/.ssh + echo ' StrictHostKeyChecking no' >> /etc/ssh/ssh_config + echo '${{ secrets.SSH_PRIVATE_KEY }}' > ~/.ssh/id_rsa + echo '${{ secrets.SSH_PUBLIC_KEY }}' > ~/.ssh/id_rsa.pub + chmod -R 600 ~/.ssh/* + + - name: Testing SSH connection + run: ssh sysadmin@liv10.labymod.net -p10031 'uptime' From 102c95a1ed16a6a651864708c895a035c1df8126 Mon Sep 17 00:00:00 2001 From: scrummer Date: Sat, 23 Nov 2019 15:52:15 +0100 Subject: [PATCH 10/16] Testing GH actions --- .github/workflows/github-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/github-ci.yml b/.github/workflows/github-ci.yml index 9b45390..20345b7 100644 --- a/.github/workflows/github-ci.yml +++ b/.github/workflows/github-ci.yml @@ -17,7 +17,7 @@ jobs: - name: Prepare SSH client run: | mkdir -p ~/.ssh - echo ' StrictHostKeyChecking no' >> /etc/ssh/ssh_config + sudo echo ' StrictHostKeyChecking no' >> /etc/ssh/ssh_config echo '${{ secrets.SSH_PRIVATE_KEY }}' > ~/.ssh/id_rsa echo '${{ secrets.SSH_PUBLIC_KEY }}' > ~/.ssh/id_rsa.pub chmod -R 600 ~/.ssh/* From e3534a4812d9c40cde597a939cd99dcd73e42219 Mon Sep 17 00:00:00 2001 From: scrummer Date: Sat, 23 Nov 2019 15:54:41 +0100 Subject: [PATCH 11/16] Testing GH actions --- .github/workflows/github-ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/github-ci.yml b/.github/workflows/github-ci.yml index 20345b7..ad73d63 100644 --- a/.github/workflows/github-ci.yml +++ b/.github/workflows/github-ci.yml @@ -11,16 +11,16 @@ jobs: runs-on: ubuntu-latest # if: github.event_name == 'push' steps: - - name: Install necessary packages + - name: Install packages run: sudo apt-get update -q && sudo apt-get -y install git vim curl openssh-client openssh-server && sudo apt-get autoclean && sudo rm -rf /var/lib/apt/lists/* - name: Prepare SSH client run: | mkdir -p ~/.ssh - sudo echo ' StrictHostKeyChecking no' >> /etc/ssh/ssh_config +# echo ' StrictHostKeyChecking no' >> /etc/ssh/ssh_config echo '${{ secrets.SSH_PRIVATE_KEY }}' > ~/.ssh/id_rsa echo '${{ secrets.SSH_PUBLIC_KEY }}' > ~/.ssh/id_rsa.pub chmod -R 600 ~/.ssh/* - - name: Testing SSH connection + - name: Test SSH connection run: ssh sysadmin@liv10.labymod.net -p10031 'uptime' From 971ef5d6bad24d167821b9b592ba4113d5a25b92 Mon Sep 17 00:00:00 2001 From: scrummer Date: Sat, 23 Nov 2019 15:55:18 +0100 Subject: [PATCH 12/16] Testing GH actions --- .github/workflows/github-ci.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/github-ci.yml b/.github/workflows/github-ci.yml index ad73d63..b06d20f 100644 --- a/.github/workflows/github-ci.yml +++ b/.github/workflows/github-ci.yml @@ -17,7 +17,6 @@ jobs: - name: Prepare SSH client run: | mkdir -p ~/.ssh -# echo ' StrictHostKeyChecking no' >> /etc/ssh/ssh_config echo '${{ secrets.SSH_PRIVATE_KEY }}' > ~/.ssh/id_rsa echo '${{ secrets.SSH_PUBLIC_KEY }}' > ~/.ssh/id_rsa.pub chmod -R 600 ~/.ssh/* From 62ad481e00b53ca594bf2ff9b6c55ee39728e849 Mon Sep 17 00:00:00 2001 From: scrummer Date: Sat, 23 Nov 2019 15:59:49 +0100 Subject: [PATCH 13/16] Testing GH actions --- .github/workflows/github-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/github-ci.yml b/.github/workflows/github-ci.yml index b06d20f..a65afc9 100644 --- a/.github/workflows/github-ci.yml +++ b/.github/workflows/github-ci.yml @@ -22,4 +22,4 @@ jobs: chmod -R 600 ~/.ssh/* - name: Test SSH connection - run: ssh sysadmin@liv10.labymod.net -p10031 'uptime' + run: ssh -o 'StrictHostKeyChecking no' sysadmin@liv10.labymod.net -p10031 'uptime' From 4028e6112a998c0cb658674cb718de3a1d3204e8 Mon Sep 17 00:00:00 2001 From: scrummer Date: Sat, 23 Nov 2019 16:07:25 +0100 Subject: [PATCH 14/16] Testing GH actions --- .github/workflows/github-ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/github-ci.yml b/.github/workflows/github-ci.yml index a65afc9..4636192 100644 --- a/.github/workflows/github-ci.yml +++ b/.github/workflows/github-ci.yml @@ -6,6 +6,9 @@ on: - master - scrummer-gh-actions # todo @scrummer: remove this later +env: + SSH_CMD: ssh -o 'StrictHostKeyChecking no' + jobs: build: runs-on: ubuntu-latest @@ -22,4 +25,4 @@ jobs: chmod -R 600 ~/.ssh/* - name: Test SSH connection - run: ssh -o 'StrictHostKeyChecking no' sysadmin@liv10.labymod.net -p10031 'uptime' + run: $SSH_CMD ${{ secrets.SSH_LABYMOD_USER }}@${{ secrets.SSH_SERVER_LIV10 }} -p${{ secrets.SSH_LABYMOD_PORT }} 'uptime' From cfa85b3dc17e0d4468d28cc8e8960e955026dd1c Mon Sep 17 00:00:00 2001 From: scrummer Date: Sat, 23 Nov 2019 16:11:49 +0100 Subject: [PATCH 15/16] Testing GH actions --- .github/workflows/github-ci.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/github-ci.yml b/.github/workflows/github-ci.yml index 4636192..bc30af9 100644 --- a/.github/workflows/github-ci.yml +++ b/.github/workflows/github-ci.yml @@ -6,9 +6,6 @@ on: - master - scrummer-gh-actions # todo @scrummer: remove this later -env: - SSH_CMD: ssh -o 'StrictHostKeyChecking no' - jobs: build: runs-on: ubuntu-latest @@ -25,4 +22,4 @@ jobs: chmod -R 600 ~/.ssh/* - name: Test SSH connection - run: $SSH_CMD ${{ secrets.SSH_LABYMOD_USER }}@${{ secrets.SSH_SERVER_LIV10 }} -p${{ secrets.SSH_LABYMOD_PORT }} 'uptime' + run: ssh -o 'StrictHostKeyChecking no' ${{ secrets.SSH_LABYMOD_USER }}@${{ secrets.SSH_SERVER_LIV10 }} -p${{ secrets.SSH_LABYMOD_PORT }} 'uptime' From 9a5db5e765fb10ba0bfaf583e963861b3adabb71 Mon Sep 17 00:00:00 2001 From: scrummer Date: Sat, 23 Nov 2019 16:14:55 +0100 Subject: [PATCH 16/16] Testing GH actions --- .github/workflows/github-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/github-ci.yml b/.github/workflows/github-ci.yml index bc30af9..5491075 100644 --- a/.github/workflows/github-ci.yml +++ b/.github/workflows/github-ci.yml @@ -9,7 +9,7 @@ on: jobs: build: runs-on: ubuntu-latest -# if: github.event_name == 'push' +# if: github.event_name == 'push' #needed when we want to run a deployment AND checks/tests steps: - name: Install packages run: sudo apt-get update -q && sudo apt-get -y install git vim curl openssh-client openssh-server && sudo apt-get autoclean && sudo rm -rf /var/lib/apt/lists/*