Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

[CI/CD] Deployment with GH actions #8

Open
wants to merge 19 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/github-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build addons

on:
push:
branches:
- master
- scrummer-gh-actions # todo @scrummer: remove this later

jobs:
build:
runs-on: ubuntu-latest
# 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/*

- name: Prepare SSH client
run: |
mkdir -p ~/.ssh
echo '${{ secrets.SSH_PRIVATE_KEY }}' > ~/.ssh/id_rsa
echo '${{ secrets.SSH_PUBLIC_KEY }}' > ~/.ssh/id_rsa.pub
chmod -R 600 ~/.ssh/*

- name: Test SSH connection
run: ssh -o 'StrictHostKeyChecking no' ${{ secrets.SSH_LABYMOD_USER }}@${{ secrets.SSH_SERVER_LIV10 }} -p${{ secrets.SSH_LABYMOD_PORT }} 'uptime'
1 change: 0 additions & 1 deletion .travis.yml

This file was deleted.