This commit is contained in:
parent
c90e8555da
commit
ec895fa86d
1 changed files with 10 additions and 6 deletions
|
@ -1,15 +1,19 @@
|
|||
name: Test
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
test_service:
|
||||
runs-on: native
|
||||
|
||||
steps:
|
||||
- name: Print stuff
|
||||
- name: Get branch
|
||||
run: echo "BRANCH=$(echo "${{ gitea.ref }}" | cut -d'/' -f3)" >> $GITHUB_ENV
|
||||
- name: Signal deprived.dev for rebuild
|
||||
env:
|
||||
SSH_PRIVATE_KEY: ${{ secrets.SSH_KEY }}
|
||||
run: |
|
||||
echo "Hellooo"
|
||||
sshkey=$(mktemp)
|
||||
trap "rm -rf $sshkey" exit
|
||||
echo -e $SSH_PRIVATE_KEY > $sshkey
|
||||
ssh -i $sshkey -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no deprivedbuilder@deprived.dev -t 'sudo /run/current-system/sw/bin/systemctl start build-deprived-website-$BRANCH'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue