This commit is contained in:
parent
c90e8555da
commit
8bb7c384e3
1 changed files with 12 additions and 6 deletions
|
@ -1,15 +1,21 @@
|
||||||
name: Test
|
name: Test
|
||||||
|
|
||||||
on:
|
on: [push]
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test_service:
|
test_service:
|
||||||
runs-on: native
|
runs-on: native
|
||||||
|
|
||||||
steps:
|
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: |
|
run: |
|
||||||
echo "Hellooo"
|
sshkey=$(mktemp)
|
||||||
|
trap "rm -rf $sshkey" exit
|
||||||
|
echo -e $SSH_PRIVATE_KEY > $sshkey
|
||||||
|
echo $SSH_PRIVATE_KEY
|
||||||
|
cat $sshkey
|
||||||
|
ssh -i $sshkey -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no deprivedbuilder@deprived.dev -t 'sudo systemctl start "build-deprived-website-$BRANCH"'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue